diff --git a/src/components/Search/History.vue b/src/components/Search/History.vue deleted file mode 100644 index 27c58809..00000000 --- a/src/components/Search/History.vue +++ /dev/null @@ -1,125 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/Search/Item.vue b/src/components/Search/Item.vue deleted file mode 100644 index 0e96f020..00000000 --- a/src/components/Search/Item.vue +++ /dev/null @@ -1,349 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/Search/SaveHistory.vue b/src/components/Search/SaveHistory.vue deleted file mode 100644 index 49c2d091..00000000 --- a/src/components/Search/SaveHistory.vue +++ /dev/null @@ -1,100 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue index 14d4af0f..1409f2ea 100644 --- a/src/components/Search/Search.vue +++ b/src/components/Search/Search.vue @@ -1,83 +1,21 @@ - \ No newline at end of file diff --git a/src/components/index.ts b/src/components/index.ts index f27cd374..e54a6c26 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -5,7 +5,7 @@ import JTable from './Table/index' import TitleComponent from "./TitleComponent/index.vue"; import Form from './Form'; import CardBox from './CardBox/index.vue'; -// import Search from './Search' +import Search from './Search' import NormalUpload from './NormalUpload/index.vue' import FileFormat from './FileFormat/index.vue' import JProUpload from './JUpload/index.vue' @@ -25,7 +25,7 @@ export default { .component('TitleComponent', TitleComponent) .component('Form', Form) .component('CardBox', CardBox) - // .component('Search', Search) + .component('ProSearch', Search) .component('NormalUpload', NormalUpload) .component('FileFormat', FileFormat) .component('JProUpload', JProUpload) diff --git a/src/router/menu.ts b/src/router/menu.ts index 3ff3bad7..1dfae58c 100644 --- a/src/router/menu.ts +++ b/src/router/menu.ts @@ -8,7 +8,7 @@ export const AccountMenu = { meta: { title: '个人中心', icon: '', - hideInMenu: false + hideInMenu: true }, children: [ { diff --git a/src/store/menu.ts b/src/store/menu.ts index 6851f153..ad8390b8 100644 --- a/src/store/menu.ts +++ b/src/store/menu.ts @@ -37,6 +37,10 @@ type MenuStateType = { } } siderMenus: MenuItem[] + params: { + key: string + params: Record + } } @@ -44,6 +48,10 @@ export const useMenuStore = defineStore({ id: 'menu', state: (): MenuStateType => ({ menus: {}, + params: { + key: '', + params: {} + }, siderMenus: [] }), getters: { diff --git a/src/views/home/components/ComprehensiveHome/index.vue b/src/views/home/components/ComprehensiveHome/index.vue index bbdb6b3b..fc618870 100644 --- a/src/views/home/components/ComprehensiveHome/index.vue +++ b/src/views/home/components/ComprehensiveHome/index.vue @@ -76,7 +76,7 @@ const deviceBootConfig: bootConfig[] = [ { english: 'STEP1', label: '创建产品', - link: '/iot/device/Product', + link: 'device/Product', auth: productPermission('add'), image: '/images/home/guide-home1.png', params: { @@ -86,7 +86,7 @@ const deviceBootConfig: bootConfig[] = [ { english: 'STEP2', label: '创建设备', - link: '/iot/device/Instance', + link: 'device/Instance', auth: devicePermission('add'), image: '/images/home/guide-home1.png', params: { @@ -96,7 +96,7 @@ const deviceBootConfig: bootConfig[] = [ { english: 'STEP3', label: '规则引擎', - link: '/iot/rule-engine/Instance', + link: 'rule-engine/Instance', auth: rulePermission('add'), image: '/images/home/guide-home3.png', params: { diff --git a/src/views/media/Cascade/Channel/BindChannel/index.vue b/src/views/media/Cascade/Channel/BindChannel/index.vue index 2777f1bf..c0d31075 100644 --- a/src/views/media/Cascade/Channel/BindChannel/index.vue +++ b/src/views/media/Cascade/Channel/BindChannel/index.vue @@ -10,7 +10,7 @@ @cancel="_vis = false" :confirmLoading="loading" > -