feat: 配置代码优化
This commit is contained in:
1 parent
c7275f504f
commit
a42f7b4258
8 files changed
+4379
-77
No files matched your search
@@ -2,11 +2,17 @@ import { defineStore } from "pinia";
|
||||
|
||||
export const useAppStore = defineStore("app", {
|
||||
state() {
|
||||
return {};
|
||||
return {
|
||||
title: "",
|
||||
};
|
||||
},
|
||||
getters: {},
|
||||
|
||||
actions: {},
|
||||
actions: {
|
||||
setData(data) {
|
||||
this.title = data;
|
||||
},
|
||||
},
|
||||
|
||||
unistorage: true,
|
||||
});
|
||||
Reference in new issue
Block a user