فهرست منبع

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

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