feat: 配置代码优化
This commit is contained in:
@@ -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