瀏覽代碼

'判断通过扫码进入无返回按钮'

fanghuisheng 2 年之前
父節點
當前提交
86de0bac5e
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/pages/business/mhxf/unitInfoCollection/index.vue

+ 5 - 0
src/pages/business/mhxf/unitInfoCollection/index.vue

@@ -174,6 +174,7 @@
 <script setup>
 <script setup>
 import { onLoad, onShow, onHide, onLaunch, onReady } from "@dcloudio/uni-app";
 import { onLoad, onShow, onHide, onLaunch, onReady } from "@dcloudio/uni-app";
 import { ref, onMounted, inject, shallowRef, reactive, toRefs, getCurrentInstance } from "vue";
 import { ref, onMounted, inject, shallowRef, reactive, toRefs, getCurrentInstance } from "vue";
+import { getToken } from "@/utils/auth";
 
 
 import publicStore from "@/store/modules/public.js";
 import publicStore from "@/store/modules/public.js";
 
 
@@ -867,6 +868,10 @@ onLoad((options) => {
 
 
   form.value.baseBuildList.push(baseBuildListForm.value);
   form.value.baseBuildList.push(baseBuildListForm.value);
   rules.value.baseBuildList.push(baseBuildListRules.value);
   rules.value.baseBuildList.push(baseBuildListRules.value);
+
+  if (!getToken()) {
+    document.getElementsByClassName("uni-page-head-hd")[0].style.cssText = "display: none;";
+  }
 });
 });
 </script>
 </script>