|
@@ -10,8 +10,8 @@ export const useAppStore = defineStore('main', {
|
|
|
state: () => ({
|
|
|
//系统信息
|
|
|
title: getStoreValue('title') || appConfig.title,
|
|
|
- logoIcon: getStoreValue('logoIcon') || logoIcon,
|
|
|
- logoName: getStoreValue('logoName') || logoName,
|
|
|
+ logoIcon: logoIcon,
|
|
|
+ logoName: logoName,
|
|
|
//主题信息
|
|
|
theme: getStoreValue('theme') || appConfig.theme, //用户可选择类型:auto,light, dark
|
|
|
themeVal: getStoreValue('themeVal') || '', //实际主题:light, dark
|
|
@@ -52,6 +52,7 @@ export const useAppStore = defineStore('main', {
|
|
|
//菜单信息
|
|
|
getMenus: state => state.menus,
|
|
|
getButtons: state => state.buttons,
|
|
|
+ getHomeUrl: state => state.homeUrl,
|
|
|
//项目合同段数据
|
|
|
getProjectContract: state => state.projectContract,
|
|
|
getProjectInfo: state => state.projectInfo,
|
|
@@ -120,6 +121,10 @@ export const useAppStore = defineStore('main', {
|
|
|
getButtonsVal(value) {
|
|
|
return this.buttons[value] || false;
|
|
|
},
|
|
|
+ setHomeUrl(value) {
|
|
|
+ this.homeUrl = value
|
|
|
+ setStoreValue('homeUrl', value)
|
|
|
+ },
|
|
|
//项目合同段数据
|
|
|
setProjectContract(value) {
|
|
|
this.projectContract = value
|
|
@@ -162,6 +167,7 @@ export const useAppStore = defineStore('main', {
|
|
|
this.userInfo = null
|
|
|
this.menus = null
|
|
|
this.buttons = null
|
|
|
+ this.homeUrl = null
|
|
|
this.projectContract = null
|
|
|
this.projectInfo = null
|
|
|
this.contractInfo = null
|