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
2024-10-16 16:47:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
115aa8e1fbe1f112441686629880ca3fdf2e72a4
115aa8e1
1 parent
26327830
🐞 fix: 成功页显示信息改成从上一个页面获取
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
src/views/index.vue
src/views/success.vue
src/views/index.vue
View file @
115aa8e
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-10-
09 14:54:36
* @LastEditTime: 2024-10-
16 16:42:21
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
...
...
@@ -943,6 +943,9 @@ const successHandle = () => { // 表单成功提交后续操作
// 跳转成功页面
$router.push({
path: "/success",
query: {
successInfo: JSON.stringify(successInfo.value),
},
});
}
}
...
...
src/views/success.vue
View file @
115aa8e
<!--
* @Date: 2022-06-29 18:18:02
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
3-02-16 16:41:15
* @LastEditTime: 202
4-10-16 16:46:34
* @FilePath: /data-table/src/views/success.vue
* @Description: 文件描述
-->
...
...
@@ -56,12 +56,14 @@ const styleObj = {
// 获取成功返回信息
const store = mainStore();
const { successInfo } = storeToRefs(store);
// const { successInfo } = storeToRefs(store);
const successInfo = ref({});
const richText = '<div style="font-weight: bold;">123</div>'
onMounted(() => {
$('body').css('backgroundColor', 'white');
successInfo.value = JSON.parse($route.query.successInfo)
});
const handle = () => {
...
...
Please
register
or
login
to post a comment