refactor: clean up codebase and add new features
Replace SCSS variable usages with explicit pixel/hex values for consistent styling across all components Fix broken template syntax including missing class spaces and incorrect closing tags Migrate constant and API imports to centralized @/constants and @/api modules Add new utility classes: IdUtils, CallbackUtils, and TimerUtils Add new chat conversation API endpoints for recent conversations and message lists Add new Discovery page components (FindTabs, QuickQuestions, CardSwiper) and their styles Update app store config to use environment variables for base API and WebSocket URLs Add new selected tab icon assets
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { defineStore } from "pinia";
|
||||
import { devUrl, wssDevUrl } from "../../request/base/baseUrl";
|
||||
|
||||
export const useAppStore = defineStore("app", {
|
||||
state() {
|
||||
return {
|
||||
sceneId: "", // 分身场景id
|
||||
serverConfig: { // 服务器配置
|
||||
baseUrl: devUrl, // 服务器基础地址
|
||||
wssUrl: wssDevUrl, // 服务器ws地址
|
||||
serverConfig: {
|
||||
// 服务器配置
|
||||
baseUrl: import.meta.env.VITE_API_BASE_URL, // 服务器基础地址
|
||||
wssUrl: import.meta.env.VITE_SOCKET_BASE_URL, // 服务器ws地址
|
||||
},
|
||||
};
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user