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
2022-12-05 17:38:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3a65740b90eae59c2958d66ade0784cca23446a8
3a65740b
1 parent
a59b4a6a
fix 细节调整
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
src/App.vue
src/views/index.vue
src/App.vue
View file @
3a65740
...
...
@@ -35,7 +35,7 @@ const keepPages = computed(() => store.getKeepPages);
// // TAG: 全局设置页面标题
// const $route = useRoute();
watchEffect(() => useTitle("表单标题"));
//
watchEffect(() => useTitle("表单标题"));
// 监听路由变化
// 切换路由页面返回顶部
const $router = useRouter();
...
...
src/views/index.vue
View file @
3a65740
...
...
@@ -57,7 +57,16 @@
<script setup>
import "@vant/touch-emulator";
import { createComponentType } from "@/hooks/useComponentType";
import _ from "lodash";
import {
Cookies,
$,
_,
axios,
storeToRefs,
mainStore,
Toast,
useTitle,
} from "@/utils/generatePackage.js";
import { useRoute } from "vue-router";
import { queryFormAPI } from "@/api/form.js";
import { addFormDataAPI } from "@/api/data.js";
...
...
@@ -152,6 +161,7 @@ onMounted(async () => {
.setAttribute("style", `background-color: ${styleColor.backgroundColor}`);
const { data } = await queryFormAPI({ form_code: $route.query.code });
const form_data = data[0];
useTitle(form_data.name);
// 重构数据结构
let page_header = {};
let page_form = [];
...
...
Please
register
or
login
to post a comment