feat: 将存储的按照功能分离

This commit is contained in:
2026-04-30 11:15:23 +08:00
parent 3fe099c3b0
commit 85eaf3b86a
5 changed files with 26 additions and 16 deletions

View File

@@ -4,9 +4,7 @@ import { devUrl, wssDevUrl } from "../../request/base/baseUrl";
export const useAppStore = defineStore("app", {
state() {
return {
title: "",
sceneId: "", // 分身场景id
previewImageData: [], // 预览图片数据
serverConfig: { // 服务器配置
baseUrl: devUrl, // 服务器基础地址
wssUrl: wssDevUrl, // 服务器ws地址
@@ -16,15 +14,9 @@ export const useAppStore = defineStore("app", {
getters: {},
actions: {
setData(data) {
this.title = data;
},
setSceneId(data) {
this.sceneId = data;
},
setPreviewImageData(data) {
this.previewImageData = data;
},
setServerConfig(data) {
this.serverConfig = data;
},