zhangjie 3 years ago
parent
commit
18d877e8b8

+ 2 - 2
src/components/VEditor/VEditor.vue

@@ -38,9 +38,9 @@ export default {
     renderRichText(JSON.parse(this.value), this.$refs.editor);
 
     this.$refs.editor.addEventListener("paste", (event) => {
+      event.preventDefault();
       const clipboard = event.clipboardData || window.clipboardData;
-      if (!clipboard.files) {
-        event.preventDefault();
+      if (!clipboard.files || !clipboard.files.length) {
         let pasteText = clipboard.getData("text");
         document.execCommand("insertText", false, pasteText);
       }

+ 1 - 0
src/features/examwork/ExamManagement/ExamEdit.vue

@@ -655,6 +655,7 @@ export default {
         }
         if (this.form.monitorVideoSource === null) {
           this.form.monitorVideoSource = [];
+          this.form.monitorRecord = [];
         }
       },
     },

+ 0 - 1
src/router/index.js

@@ -219,7 +219,6 @@ router.beforeEach((to, from, next) => {
   if (to.path) {
     window._hmt.push(["_trackPageview", to.fullPath]);
   }
-
   const token = getToken();
   if (isNil(token) && to.path.includes("/login") === false) {
     router.push("/login?redirectTo=" + encodeURI(to.fullPath));

+ 2 - 2
src/styles/global.css

@@ -109,6 +109,6 @@ body {
   background-color: #ffffff;
 }
 
-input[type=file] {
+input[type="file"] {
   overflow: hidden;
-}
+}

+ 2 - 1
src/views/Layout/Layout.vue

@@ -39,8 +39,9 @@ export default {
     };
   },
   created() {
+    // 禁止通过非session共享的方式打开系统页面
     if (!this.$store.state.user || !this.$store.state.user["id"]) {
-      this.$message.error("数据丢失,系统异常,请重新登录!");
+      this.$message.error("请重新登录!");
       this.$router.replace({ name: "Login" });
       return;
     }