seimin 1 vuosi sitten
vanhempi
commit
4c91f25501
2 muutettua tiedostoa jossa 19 lisäystä ja 9 poistoa
  1. 1 1
      config/index.js
  2. 18 8
      src/views/Login.vue

+ 1 - 1
config/index.js

@@ -70,7 +70,7 @@ module.exports = {
70 70
      * Source Maps
71 71
      */
72 72
 
73
-    productionSourceMap: false,
73
+    productionSourceMap: true,
74 74
     // https://webpack.js.org/configuration/devtool/#production
75 75
     devtool: '#source-map',
76 76
 

+ 18 - 8
src/views/Login.vue

@@ -149,14 +149,24 @@ export default {
149 149
             var list5 = data5.list || [];
150 150
             var list6 = data6.list || [];
151 151
             var list7 = data7.list || [];
152
-            localStorage.setItem("repairMain", JSON.stringify(list1[0]));
153
-            localStorage.setItem("incidentWithConsumable", list2[0].valueconfig);
154
-            localStorage.setItem("wxIncidentWithCmdb", list3[0].valueconfig);
155
-            localStorage.setItem("reqHasCategory", JSON.stringify(list4[0]));
156
-            localStorage.setItem("wxBxQuestions", list5[0].valueconfig);
157
-            localStorage.setItem("wxGuide", list6[0].valueconfig);
158
-            localStorage.setItem("ifRoom", list7[0].valueconfig);
159
-            this.roleHandler(null,requester);
152
+            if(list1.length && list2.length && list3.length && list4.length && list5.length && list6.length && list7.length){
153
+              localStorage.setItem("repairMain", JSON.stringify(list1[0]));
154
+              localStorage.setItem("incidentWithConsumable", list2[0].valueconfig);
155
+              localStorage.setItem("wxIncidentWithCmdb", list3[0].valueconfig);
156
+              localStorage.setItem("reqHasCategory", JSON.stringify(list4[0]));
157
+              localStorage.setItem("wxBxQuestions", list5[0].valueconfig);
158
+              localStorage.setItem("wxGuide", list6[0].valueconfig);
159
+              localStorage.setItem("ifRoom", list7[0].valueconfig);
160
+              this.roleHandler(null,requester);
161
+            }else{
162
+              this.$createDialog({
163
+                type: "alert",
164
+                title: "系统配置错误!",
165
+                content: "请稍后再试",
166
+                icon: "cubeic-wrong",
167
+                color: "red"
168
+              }).show();
169
+            }
160 170
           }else{
161 171
             this.$createDialog({
162 172
               type: "alert",