Quellcode durchsuchen

获取全局配置对象函数优化

luoaoxuan vor 1 Jahr
Ursprung
Commit
e9b1d94038

Datei-Diff unterdrückt, da er zu groß ist
+ 8 - 1
src/utils/query.js


+ 1 - 1
src/views/component/device/deviceDialog.vue

@@ -1011,7 +1011,7 @@ export default {
     },
 
     async mounted () {
-        const tabList = await getSetting(this, 'device', 'tabList')
+        const tabList = await getSetting('device', 'tabList')
         if (tabList) {
             console.debug(tabList)
             this.tabList = tabList

+ 1 - 1
src/views/component/device/index.vue

@@ -624,7 +624,7 @@ export default {
         }
     },
     async mounted () {
-        const stateList = await getSetting(this, 'device', 'stateList')
+        const stateList = await getSetting('device', 'stateList')
         if (stateList) {
             console.debug(stateList)
             this.stateList = stateList

+ 1 - 1
src/views/platform/risk/riskV2.vue

@@ -404,7 +404,7 @@ export default {
     },
 
     async mounted () {
-        const culWays = await getSetting(this, 'risk', 'culWays')
+        const culWays = await getSetting('risk', 'culWays')
         if (culWays) {
             console.debug(culWays)
             this.culWays = culWays

+ 1 - 1
src/views/system/fasc/facilityEnvConfig.vue

@@ -468,7 +468,7 @@ export default {
         }
     },
     async mounted () {
-        const config = await getSetting(this, 'facilityEnv', 'typeList')
+        const config = await getSetting('facilityEnv', 'typeList')
         if (config) {
             console.debug(config)
             this.config = config

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.