解决defineStore唯一标识符冲突问题
Showing
6 changed files
with
6 additions
and
6 deletions
| 1 | const useDataAssetStore = defineStore( | 1 | const useDataAssetStore = defineStore( |
| 2 | // 资产目录guid | 2 | // 资产目录guid |
| 3 | 'isRefresh', | 3 | 'asset', |
| 4 | () => { | 4 | () => { |
| 5 | const isRefresh = ref<boolean>(false) | 5 | const isRefresh = ref<boolean>(false) |
| 6 | const isRefreshDamCatalog = ref<boolean>(false) | 6 | const isRefreshDamCatalog = ref<boolean>(false) | ... | ... |
| 1 | const useDataFacilitatorStore = defineStore( | 1 | const useDataFacilitatorStore = defineStore( |
| 2 | /** 产品上架 */ | 2 | /** 产品上架 */ |
| 3 | 'isRefresh', | 3 | 'facilitator', |
| 4 | () => { | 4 | () => { |
| 5 | const isRefresh = ref<boolean>(false) | 5 | const isRefresh = ref<boolean>(false) |
| 6 | function set(v: boolean) { | 6 | function set(v: boolean) { | ... | ... |
| 1 | const useDataProductStore = defineStore( | 1 | const useDataProductStore = defineStore( |
| 2 | /** 产品上架 */ | 2 | /** 产品上架 */ |
| 3 | 'isRefresh', | 3 | 'dataProduct', |
| 4 | () => { | 4 | () => { |
| 5 | const isRefresh = ref<boolean>(false) | 5 | const isRefresh = ref<boolean>(false) |
| 6 | function set(v: boolean) { | 6 | function set(v: boolean) { | ... | ... |
-
Please register or sign in to post a comment