zhaobao 2 years ago
parent
commit
8b991d40a6
2 changed files with 58 additions and 1 deletions
  1. 1 1
      .gitignore
  2. 57 0
      src/settings.js

+ 1 - 1
.gitignore

@@ -16,4 +16,4 @@ tests/**/coverage/
 *.sln
 
 package-lock.json
-src/settings.js
+# src/settings.js

+ 57 - 0
src/settings.js

@@ -0,0 +1,57 @@
+module.exports = {
+  title: '冀东海德堡(泾阳)水泥有限公司厂区风险分布四色图',
+
+  /**
+   * @type {boolean} true | false
+   * @description Whether show the settings right-panel
+   */
+  showSettings: false,
+
+  /**
+   * @type {boolean} true | false
+   * @description Whether need tagsView
+   */
+  tagsView: false,
+
+  /**
+   * @type {boolean} true | false
+   * @description Whether fix the header
+   */
+  fixedHeader: false,
+
+  /**
+   * @type {boolean} true | false
+   * @description Whether show the logo in sidebar
+   */
+  sidebarLogo: true,
+
+  /**
+   * @type {string | array} 'production' | ['production', 'development']
+   * @description Need show err logs component.
+   * The default is only used in the production env
+   * If you want to also use it in dev, you can pass ['production', 'development']
+   */
+  errorLog: 'production',
+
+  /**
+  * 服务API地址
+  */
+  devServerUrl: 'http://116.204.109.177:8080/', // 开发环境
+  serverUrl: 'http://116.204.109.177:8080/', // 正式环境
+  // devServerUrl: 'http://1.15.92.205:8080/', // 开发环境
+  // devServerUrl: 'http://127.0.0.1:8080/', // 开发环境
+  mqttUrl: 'ws://1.15.92.205:8083/mqtt', // 水泥厂mqtt地址
+  /**
+  * websocket 地址
+  * dev 开发环境
+  * pro正式环境
+  */
+  appID: '10001',
+  appKey: '82a8bf439373e305',
+  appSecret: '82a8bf439373e305',
+  permitTplId: 7,
+  wsServerUrl: {
+    dev: 'ws://ws.58yunkang.com/websocket/link',
+    pro: 'ws://ws.58yunkang.com/websocket/link'
+  }
+}