Prechádzať zdrojové kódy

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

luoaoxuan 1 rok pred
rodič
commit
e9b1d94038

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 8 - 1
src/utils/query.js


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

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

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

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

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

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

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

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

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov