feat: 将存储的按照功能分离
This commit is contained in:
@@ -35,14 +35,14 @@
|
||||
import { ref } from "vue";
|
||||
import TopNavBar from "@/components/TopNavBar/index.vue";
|
||||
import { onLoad } from "@dcloudio/uni-app";
|
||||
import { useAppStore } from "@/store";
|
||||
const appStore = useAppStore();
|
||||
import { usePictureStore } from "@/store";
|
||||
const pictureStore = usePictureStore();
|
||||
|
||||
const albumList = ref([]);
|
||||
|
||||
onLoad(() => {
|
||||
albumList.value = appStore.previewImageData;
|
||||
appStore.setPreviewImageData([]);
|
||||
albumList.value = pictureStore.previewImageData;
|
||||
pictureStore.setPreviewImageData([]);
|
||||
});
|
||||
|
||||
// 处理图片预览
|
||||
|
||||
Reference in New Issue
Block a user