feat(renderSwitch): 添加渲染模式切换

This commit is contained in:
BTMuli
2023-03-12 19:33:28 +08:00
parent 6b9c8e73b2
commit 4fdfe5f4ad
3 changed files with 47 additions and 2 deletions

View File

@@ -27,6 +27,8 @@ const useAppStore = defineStore({
loading: false,
// 侧边栏设置
sidebar: true,
// 咨讯页渲染模式
structureRender: true, // 是否采用结构化渲染,否则采用 raw 渲染
// 数据路径
dataPath: {
app: appDataDir,
@@ -64,6 +66,8 @@ const useAppStore = defineStore({
this.loading = false;
// 初始化侧边栏设置
this.sidebar = true;
// 初始化咨讯页渲染模式
this.structureRender = true;
// 初始化用户数据路径
this.userPath = {
achievements: `${userDataDir}\\achievements.json`,