diff --git a/src/App.vue b/src/App.vue index 84eda5c5..7cc1b29c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -81,6 +81,7 @@ > + @@ -91,6 +92,7 @@ import { } from "@/api/dictionary/dictionary"; import Vue from "vue"; import i18n from "./lang"; +import browserTip from "@/views/dictionary/template/browser/tip.vue"; export default { name: "App", data() { @@ -102,9 +104,21 @@ export default { arr: [], }; }, + components: { browserTip }, mounted() { this.show = process.env.VUE_APP_OSS_PATH === "/test/dist"; }, + watch: { + "$route.path": { + handler() { + if (this.$route.path === "/login") { + this.$refs.browserTip.open(); + } + }, + immediate: true, + deep: true, + }, + }, methods: { changeValue(target, attr, e) { this.$set(target, attr, e); @@ -252,7 +266,7 @@ textarea { .title-logo { height: 40px; } -.title-logo{ +.title-logo { height: 40px; } diff --git a/src/views/dictionary/template/browser/form.vue b/src/views/dictionary/template/browser/form.vue index e7dec9bb..c32a1921 100644 --- a/src/views/dictionary/template/browser/form.vue +++ b/src/views/dictionary/template/browser/form.vue @@ -124,6 +124,13 @@ export default { Object.keys(this.form).forEach((key) => { this.form[key] = this.data[key]; }); + if (this.form.FileName) { + this.fileList[0] = { + name: this.form.FileName, + path: this.form.Path, + fullPath: this.form.Path, + }; + } } }, methods: { diff --git a/src/views/dictionary/template/browser/index.vue b/src/views/dictionary/template/browser/index.vue index 10727b31..ee27c781 100644 --- a/src/views/dictionary/template/browser/index.vue +++ b/src/views/dictionary/template/browser/index.vue @@ -63,7 +63,7 @@ >