diff --git a/src/main.js b/src/main.js index 7a6b88143..06b3688d0 100644 --- a/src/main.js +++ b/src/main.js @@ -2,7 +2,7 @@ * @Author: mk 2403457699@qq.com * @Date: 2022-12-16 09:05:10 * @LastEditors: mk 2403457699@qq.com - * @LastEditTime: 2023-08-10 16:49:19 + * @LastEditTime: 2024-05-07 15:54:09 * @Description: 全局挂载提示信息,避免同时出现多条信息 * * @@ -38,6 +38,9 @@ import util from "@js/util"; import Moment from "moment"; import getQueryPara from "dai-js/modules/getQueryPara"; import NodeWrap from "@/components/Tree/nodeWrap.vue"; +import 'quill/dist/quill.core.css' +import 'quill/dist/quill.snow.css' +import 'quill/dist/quill.bubble.css' // import AddNode from "@/components/Tree/addNode.vue"; import NodeWrapJw from "@/components/JwTree/nodeWrap.vue"; import NodeWrapGrid from "@/components/GridTree/nodeWrap.vue"; diff --git a/src/router/index.js b/src/router/index.js index 66f344e46..e06a7a6f3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -98,6 +98,16 @@ export const moduleRoutes = { ], }, }, + { + path: "notice-version", + props: true, + name: "notice-version", + component: () => import("@/views/modules/home/cpts/notice_version_update"), + meta: { + isTab: true, + title: "版本更新", + }, + }, { path: "base-nonIntResi", props: true, diff --git a/src/views/modules/home/cpts/notice_version_update.vue b/src/views/modules/home/cpts/notice_version_update.vue new file mode 100644 index 000000000..e24a736fb --- /dev/null +++ b/src/views/modules/home/cpts/notice_version_update.vue @@ -0,0 +1,48 @@ + + + + + diff --git a/src/views/modules/home/notice.vue b/src/views/modules/home/notice.vue index 01bc6b973..7bf0079bd 100644 --- a/src/views/modules/home/notice.vue +++ b/src/views/modules/home/notice.vue @@ -188,10 +188,18 @@ export default { this.$router.push({ path: obj[item.category], }); + } else if(item.msgType == "sys_version_upgrade_publish"){ + let { targetId } = item + this.$router.push({ path: `notice-version`, query: { version_id: targetId } }); + this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => { + if (item.name === "notice-version") { + return { ...item }; + } + return item; + }); } - this.getNoticeData() }, - + async read(item, index) { if (item && item.readFlag == 1) return;