Selaa lähdekoodia

优化$namespace变量

wuxw 6 vuotta sitten
vanhempi
commit
648ece2547

+ 1 - 1
java110-front/src/main/java/com/java110/front/core/VcCreateProcessor.java

@@ -249,7 +249,7 @@ public class VcCreateProcessor extends AbstractElementTagProcessor {
         js = js.substring(0, extPos) + tmpProTypes.substring(0, pos).trim()
         js = js.substring(0, extPos) + tmpProTypes.substring(0, pos).trim()
                 + "\nnamespace:'" + namespace.trim() + "',\n" + tmpProTypes.substring(pos, tmpProTypes.length());
                 + "\nnamespace:'" + namespace.trim() + "',\n" + tmpProTypes.substring(pos, tmpProTypes.length());
         int position = js.indexOf("{");
         int position = js.indexOf("{");
-        String propsJs = "\n$namespace='" + namespace.trim() + "';\n";
+        String propsJs = "\nvar $namespace='" + namespace.trim() + "';\n";
         js = new StringBuffer(js).insert(position + 1, propsJs).toString();
         js = new StringBuffer(js).insert(position + 1, propsJs).toString();
         return js;
         return js;
     }
     }