From 587b11e1ecf82fe91ba4341cecfe8fa6b29ba2e3 Mon Sep 17 00:00:00 2001 From: Huakk <1751826683@qq.com> Date: Wed, 17 Jul 2024 20:09:38 +0800 Subject: [PATCH] fix(custom): --- src/store/modules/permission/index.js | 1 + src/views/commodity/hot_list/index.vue | 3 +++ src/views/error-page/404.vue | 2 +- src/views/login/index.vue | 2 +- src/views/marketing/code/index.vue | 3 ++- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/store/modules/permission/index.js b/src/store/modules/permission/index.js index ce40035..d69bd3f 100644 --- a/src/store/modules/permission/index.js +++ b/src/store/modules/permission/index.js @@ -122,6 +122,7 @@ export const usePermissionStore = defineStore('permission', { generateRoutes() { const menus = JSON.parse(localStorage.getItem('menu')) const accessRoutes = filterAsyncRoutes(menus) + // console.log(accessRoutes) window.localStorage.setItem('roles', JSON.stringify(findType3Routes(menus))) this.accessRoutes = accessRoutes return accessRoutes diff --git a/src/views/commodity/hot_list/index.vue b/src/views/commodity/hot_list/index.vue index 203422d..fcd1f4b 100644 --- a/src/views/commodity/hot_list/index.vue +++ b/src/views/commodity/hot_list/index.vue @@ -41,6 +41,7 @@ :pagination="pagination" :bordered="false" :row-key="(row) => row.gid" + :checked-row-keys="queryParams.checkedRowKeysRef" remote @update:checked-row-keys="handleCheck" /> @@ -525,6 +526,8 @@ const clear = () => { isDzModel.value = false notesVal.value = '' nowRow.value = {} + queryParams.value.word = '' + getList() } const veeify = async () => { diff --git a/src/views/error-page/404.vue b/src/views/error-page/404.vue index 54cb1c5..2385eea 100644 --- a/src/views/error-page/404.vue +++ b/src/views/error-page/404.vue @@ -5,7 +5,7 @@ diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 282f3f2..b6cb958 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -114,7 +114,7 @@ async function handleLogin() { Reflect.deleteProperty(query, 'redirect') router.push({ path, query }) } else { - router.push('/') + router.push('/workbench') } } catch (error) { $message.removeMessage() diff --git a/src/views/marketing/code/index.vue b/src/views/marketing/code/index.vue index da15b1a..6f980c9 100644 --- a/src/views/marketing/code/index.vue +++ b/src/views/marketing/code/index.vue @@ -101,6 +101,7 @@ :pagination="pagination" :bordered="false" :row-key="rowKey" + :checked-row-keys="checkedRowKeysRef" remote @update:checked-row-keys="handleCheck" /> @@ -425,6 +426,7 @@ const handleclear = () => { pulse: null, activate_status: 2, } + checkedRowKeysRef.value = [] } const modalType = ref(null) @@ -458,7 +460,6 @@ const handleValidateClick = (e) => { ...formValue.value, }) } - $message.success('成功') handleclear() getList() } catch (error) {