feat: 图片相册与图片浏览
This commit is contained in:
@@ -4,9 +4,10 @@ export const useAppStore = defineStore("app", {
|
||||
state() {
|
||||
return {
|
||||
title: "",
|
||||
sceneId: "",
|
||||
hasToken: false,
|
||||
tokenExpired: false,
|
||||
sceneId: "", /// 分身场景id
|
||||
hasToken: false, /// 是否有token
|
||||
tokenExpired: false, /// token是否过期
|
||||
previewImageData: [], /// 预览图片数据
|
||||
};
|
||||
},
|
||||
getters: {},
|
||||
@@ -24,6 +25,9 @@ export const useAppStore = defineStore("app", {
|
||||
setTokenExpired(status) {
|
||||
this.tokenExpired = status;
|
||||
},
|
||||
setPreviewImageData(data) {
|
||||
this.previewImageData = data;
|
||||
},
|
||||
},
|
||||
|
||||
unistorage: true,
|
||||
|
||||
Reference in New Issue
Block a user