ycm преди 2 години
родител
ревизия
54e8129d3e
променени са 2 файла, в които са добавени 14 реда и са изтрити 26 реда
  1. 1 1
      app.js
  2. 13 25
      project.config.json

+ 1 - 1
app.js

@@ -1,5 +1,5 @@
 // app.js
-var projectMode = 2;//0代表开发模式(本地环境),1代表测试模式(线上测试环境),2代表线上模式(正式运行环境)
+var projectMode = 0;//0代表开发模式(本地环境),1代表测试模式(线上测试环境),2代表线上模式(正式运行环境)
 var info = wx.getSystemInfoSync();
 console.log(info);
 if (info.platform != "devtools" && projectMode == 0) { projectMode = 1 }

+ 13 - 25
project.config.json

@@ -1,17 +1,8 @@
 {
     "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
-    "packOptions": {
-        "ignore": [
-            {
-                "value": ".eslintrc.js",
-                "type": "file"
-            }
-        ],
-        "include": []
-    },
     "setting": {
-        "urlCheck": false,
-        "es6": true,
+        "urlCheck": true,
+        "es6": false,
         "enhance": true,
         "postcss": true,
         "preloadBackgroundData": false,
@@ -28,23 +19,16 @@
         "uploadWithSourceMap": true,
         "compileHotReLoad": false,
         "lazyloadPlaceholderEnable": false,
-        "useMultiFrameRuntime": true,
-        "useApiHook": true,
-        "useApiHostProcess": true,
+        "useMultiFrameRuntime": false,
         "babelSetting": {
             "ignore": [],
             "disablePlugins": [],
             "outputPath": ""
         },
-        "useIsolateContext": false,
+        "useIsolateContext": true,
         "userConfirmedBundleSwitch": false,
         "packNpmManually": false,
-        "packNpmRelationList": [
-            {
-                "packageJsonPath": "./package.json",
-                "miniprogramNpmDistDir": "./"
-            }
-        ],
+        "packNpmRelationList": [],
         "minifyWXSS": true,
         "disableUseStrict": false,
         "minifyWXML": true,
@@ -54,12 +38,16 @@
         "useStaticServer": true
     },
     "compileType": "miniprogram",
-    "libVersion": "2.22.0",
-    "appid": "wx96efd334b6da6e38",
-    "projectname": "%E6%B5%B7%E6%98%9F%E5%88%86%E6%8B%A3%E7%AB%AF",
     "condition": {},
     "editorSetting": {
         "tabIndent": "insertSpaces",
         "tabSize": 4
-    }
+    },
+    "projectname": "",
+    "libVersion": "2.24.0",
+    "packOptions": {
+        "ignore": [],
+        "include": []
+    },
+    "appid": "wx96efd334b6da6e38"
 }