system-phone 3.1.8-1-t8 → 3.1.8-1-t9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -72,6 +72,7 @@ let asyncReady = async function (self, url) {
|
|
|
72
72
|
let that = self
|
|
73
73
|
const vueConfig={}
|
|
74
74
|
const res = await Vue.resetget(`${url}/api/af-safecheck/vue`, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
|
75
|
+
self.delConfigKey(res.data)
|
|
75
76
|
vueConfig.safecheck = res.data
|
|
76
77
|
const dir_module = res.data.global.dir_module
|
|
77
78
|
for(let mod in dir_module) {
|
|
@@ -81,6 +82,7 @@ let asyncReady = async function (self, url) {
|
|
|
81
82
|
mod_url = `${url}/${dir_module[mod].name}/rs/vue`
|
|
82
83
|
}
|
|
83
84
|
const config = await Vue.resetget(mod_url, {data: {}}, {resolveMsg: null, rejectMsg: null})
|
|
85
|
+
self.delConfigKey(config.data)
|
|
84
86
|
vueConfig[dir_module[mod].name] = config.data;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
@@ -349,6 +351,18 @@ export default {
|
|
|
349
351
|
console.error('登录异常,LoginApp的confirm函数错误', e)
|
|
350
352
|
this.$showMessage('登陆失败!,')
|
|
351
353
|
}
|
|
354
|
+
},
|
|
355
|
+
delConfigKey(obj){
|
|
356
|
+
// 从琉璃中获取的配置中会包含 $开头的一些额外描述新的key。为了兼容v3的代码逻辑在此函数中去掉
|
|
357
|
+
Object.keys(obj).forEach(key =>{
|
|
358
|
+
Object.keys(obj[key]).forEach(col => {
|
|
359
|
+
// 检查键是否以$开头
|
|
360
|
+
if (col.startsWith('$')) {
|
|
361
|
+
// 使用delete操作符删除键
|
|
362
|
+
delete obj[key][col];
|
|
363
|
+
}
|
|
364
|
+
})
|
|
365
|
+
})
|
|
352
366
|
}
|
|
353
367
|
},
|
|
354
368
|
watch: {
|