|
|
@@ -25,7 +25,7 @@ import { useI18n } from "vue-i18n";
|
|
|
import Affix from "./components/Affix.vue";
|
|
|
import SettingWidget from "./components/Setting.vue";
|
|
|
import { useLayoutLocalStore } from "@/stores/modules/layoutLocal";
|
|
|
-import { getDifference, setDifference, handleProp, streamlineFunc, streamlineAttrFunc, convertStrToObj } from "@/utils";
|
|
|
+import { getDifference, setDifference, handleProp, streamlineFunc, streamlineAttrFunc, convertStrToObj, isMobile } from "@/utils";
|
|
|
import { cloneDeep, pick, get, omit, defaultsDeep } from "lodash-es";
|
|
|
import LjHeader from "@/components/LjHeader/index.vue";
|
|
|
import BaseMsgForm from "@/components/BaseMsgForm/index.vue";
|
|
|
@@ -150,10 +150,7 @@ const isScrollspy = computed(() => {
|
|
|
console.log("isScrollspy currentMould.value :>> ", currentMould.value);
|
|
|
console.log("DETAIL_LAYOUT_DEFINE :>> ", DETAIL_LAYOUT_DEFINE);
|
|
|
|
|
|
- let width = window.innerWidth;
|
|
|
- if (width <= 1366) {
|
|
|
- return true;
|
|
|
- }
|
|
|
+ if (isMobile()) return true;
|
|
|
return currentMould.value?.header?.tabsProp?.scrollspy ?? DETAIL_LAYOUT_DEFINE.tabsProp.scrollspy;
|
|
|
});
|
|
|
/**
|