浏览代码

fix(store): 修复获取第三方主题色时accessId为空的问题

- 为getAccessIdFromPath方法返回空值时添加默认accessId 'ch_002'
- 修正了store/sys.ts中getThirdPartyThemeColor的访问逻辑
- 清理了manifest.json文件末尾多余空行,提高代码整洁度
zhangtao 9 小时之前
父节点
当前提交
6227d4f7ed
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/store/sys.ts

+ 1 - 1
src/store/sys.ts

@@ -119,7 +119,7 @@ export const useSysStore = defineStore('system', {
     async getThirdPartyThemeColor() {
       if (this.tenantCode)
         return
-      const accessId = this.getAccessIdFromPath()
+      const accessId = this.getAccessIdFromPath() || 'ch_002'
       try {
         const res = await Apis.sys.appAccess({ pathParams: { accessId } })
         this.thirdPartyName = res.data.accessName