Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2026-05-29 18:08:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a517df0a144293e9cd27f583280baec941da214
0a517df0
1 parent
3ec075e9
refactor(App.vue): 清理无用代码并添加早期返回
移除未使用的导入和计算属性,添加早期返回优化onMounted逻辑
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
src/App.vue
src/App.vue
View file @
0a517df
...
...
@@ -16,8 +16,8 @@
</template>
<script setup>
import { mainStore
, useTitle
} from "@/utils/generatePackage";
import { computed, ref,
watchEffect,
onMounted, onUnmounted } from "vue";
import { mainStore } from "@/utils/generatePackage";
import { computed, ref, onMounted, onUnmounted } from "vue";
import { useRouter } from "vue-router";
// import { Toast } from "vant";
// 会根据配置判断是否显示调试控件
...
...
@@ -38,7 +38,6 @@ import { useAuthRedirect } from '@/composables';
// 使用 include + pinia 状态管理动态缓存页面
const store = mainStore();
const keepPages = computed(() => store.getKeepPages);
// 表单配置和授权判断完成前,先只显示加载态,避免用户先看到表单又被授权回跳打断
const app_bootstrap_ready = ref(false);
...
...
@@ -63,8 +62,6 @@ const $router = useRouter();
// className: 'zIndex'
// });
// web端判断
const is_pc = computed(() => wxInfo().isPC);
// 微信端判断
const is_wx = computed(() => wxInfo().isWeiXin);
// iframe模式判断
...
...
@@ -145,6 +142,7 @@ onMounted(async () => {
data_id
}
});
return;
}
// 没有授权判断
let open_auth = form_setting.wxzq_enable && !form_setting.x_field_weixin_openid;
...
...
Please
register
or
login
to post a comment