Browse Source

1.引入前端项目配置文件

unknown 4 years ago
parent
commit
f649c46e5f
2 changed files with 15 additions and 0 deletions
  1. 1 0
      public/index.html
  2. 14 0
      public/systemConf.js

+ 1 - 0
public/index.html

@@ -6,6 +6,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <script src="<%= BASE_URL %>systemConf.js"></script>
     <title>万达广场管理说明书</title>
 </head>
 

+ 14 - 0
public/systemConf.js

@@ -0,0 +1,14 @@
+/**
+ * @author yunxing
+ * @description 项目配置文件
+ */
+var __systemConf = {
+  // 系统编码
+  systemCode: 'wandaBmGuide',
+  conf: {
+    // 编辑器地址
+    // TODO: 修改为对应的地址
+    editerUrl: 'http://localhost:9910/wandaEditer/'
+  }
+}
+window.__systemCode = __systemCode