fix: 底脚版权声明样式

This commit is contained in:
TsMask
2023-10-20 10:07:34 +08:00
parent 50caa4f178
commit 149fac7448
3 changed files with 40 additions and 25 deletions

View File

@@ -8,6 +8,8 @@ type AppStore = {
appCode: string;
/**应用版本 */
appVersion: string;
/**应用版权声明 */
copyright: string;
};
const useAppStore = defineStore('app', {
@@ -15,6 +17,7 @@ const useAppStore = defineStore('app', {
appName: import.meta.env.VITE_APP_NAME,
appCode: import.meta.env.VITE_APP_CODE,
appVersion: import.meta.env.VITE_APP_VERSION,
copyright: 'Copyright ©2023 For AGrand 千通科技',
}),
actions: {
/**设置网页标题 */
@@ -25,6 +28,10 @@ const useAppStore = defineStore('app', {
document.title = this.appName;
}
},
/**设置版权声明 */
setCopyright(text: string) {
this.copyright = text;
},
},
});