浏览代码

disable welcome modal in dev env

Michael Wang 6 年之前
父节点
当前提交
ef2ef70921
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/features/OnlineExam/OnlineExamHome.vue

+ 4 - 1
src/features/OnlineExam/OnlineExamHome.vue

@@ -36,7 +36,10 @@ export default {
   },
   beforeMount() {
     this.$nextTick(() => {
-      if (this.previousUrl.startsWith("/login/")) {
+      if (
+        this.previousUrl.startsWith("/login/") &&
+        process.env.NODE_ENV !== "development"
+      ) {
         this.$Modal.info({
           render: () => (
             <div class="welcome-modal">