mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-15 09:48:14 +08:00
🐛 抽奖详情页的 JSON 只在 devMode 展示
This commit is contained in:
@@ -55,19 +55,21 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="lottery-json">
|
<div class="lottery-json" v-if="showJson">
|
||||||
<JsonViewer :value="jsonData" copyable boxed />
|
<JsonViewer :value="jsonData" copyable boxed />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
// vue
|
// vue
|
||||||
import { onMounted, onUpdated, reactive, ref } from "vue";
|
import { computed, onMounted, onUpdated, reactive, ref } from "vue";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
import JsonViewer from "vue-json-viewer";
|
import JsonViewer from "vue-json-viewer";
|
||||||
import TOLoading from "../components/overlay/to-loading.vue";
|
import TOLoading from "../components/overlay/to-loading.vue";
|
||||||
import TSwitchTheme from "../components/main/t-switchTheme.vue";
|
import TSwitchTheme from "../components/main/t-switchTheme.vue";
|
||||||
// tauri
|
// tauri
|
||||||
import { appWindow } from "@tauri-apps/api/window";
|
import { appWindow } from "@tauri-apps/api/window";
|
||||||
|
// store
|
||||||
|
import { useAppStore } from "../store/modules/app";
|
||||||
// plugins
|
// plugins
|
||||||
import MysOper from "../plugins/Mys";
|
import MysOper from "../plugins/Mys";
|
||||||
// interface
|
// interface
|
||||||
@@ -78,6 +80,9 @@ const loading = ref(true as boolean);
|
|||||||
const loadingTitle = ref("正在加载");
|
const loadingTitle = ref("正在加载");
|
||||||
const loadingEmpty = ref(false as boolean);
|
const loadingEmpty = ref(false as boolean);
|
||||||
|
|
||||||
|
// store
|
||||||
|
const appStore = useAppStore();
|
||||||
|
const showJson = computed(() => appStore.devMode);
|
||||||
// 定时器
|
// 定时器
|
||||||
const lotteryTimer = ref(null as any);
|
const lotteryTimer = ref(null as any);
|
||||||
// 参与方式
|
// 参与方式
|
||||||
|
|||||||
Reference in New Issue
Block a user