|
@@ -1,6 +1,5 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { split } from "lodash-es";
|
|
import { split } from "lodash-es";
|
|
-import { nextTick } from "vue";
|
|
|
|
import panel from "../panel/index.vue";
|
|
import panel from "../panel/index.vue";
|
|
import { useRouter } from "vue-router";
|
|
import { useRouter } from "vue-router";
|
|
import { emitter } from "/@/utils/mitt";
|
|
import { emitter } from "/@/utils/mitt";
|
|
@@ -52,11 +51,7 @@ if (settings.tagsVal === null) {
|
|
localOperate("tagsVal", false, "set");
|
|
localOperate("tagsVal", false, "set");
|
|
settings.tagsVal = false;
|
|
settings.tagsVal = false;
|
|
}
|
|
}
|
|
-nextTick(() => {
|
|
|
|
- window.document
|
|
|
|
- .querySelector(".app-main")
|
|
|
|
- ?.setAttribute("data-show-tag", settings.tagsVal);
|
|
|
|
-});
|
|
|
|
|
|
+window.document.body.setAttribute("data-show-tag", settings.tagsVal);
|
|
|
|
|
|
function toggleClass(flag: boolean, clsName: string, target?: HTMLElement) {
|
|
function toggleClass(flag: boolean, clsName: string, target?: HTMLElement) {
|
|
const targetEl = target || document.body;
|
|
const targetEl = target || document.body;
|