Browse Source

feat: 禁用学生端登录之后的弹窗内容修改

chenhao 2 years ago
parent
commit
b94f6a9559
1 changed files with 30 additions and 2 deletions
  1. 30 2
      src/features/UserLogin/UserLogin.vue

+ 30 - 2
src/features/UserLogin/UserLogin.vue

@@ -18,7 +18,7 @@ import ua from "@/utils/ua";
 import { decryptLogin, preloadResource } from "@/utils/utils";
 import { decryptLogin, preloadResource } from "@/utils/utils";
 import { CloseCircleOutline, LockClosed, Person } from "@vicons/ionicons5";
 import { CloseCircleOutline, LockClosed, Person } from "@vicons/ionicons5";
 import { FormItemInst, FormRules, useDialog } from "naive-ui";
 import { FormItemInst, FormRules, useDialog } from "naive-ui";
-import { onMounted, onUnmounted, watch } from "vue";
+import { onMounted, onUnmounted, watch, h } from "vue";
 import { useRouter } from "vue-router";
 import { useRouter } from "vue-router";
 import GeeTest from "./GeeTest.vue";
 import GeeTest from "./GeeTest.vue";
 import GlobalNotice from "./GlobalNotice.vue";
 import GlobalNotice from "./GlobalNotice.vue";
@@ -104,7 +104,35 @@ onMounted(async () => {
   if (store.QECSConfig && !store.QECSConfig.LOGIN_SUPPORT.includes("NATIVE")) {
   if (store.QECSConfig && !store.QECSConfig.LOGIN_SUPPORT.includes("NATIVE")) {
     dialog.warning({
     dialog.warning({
       title: "提醒",
       title: "提醒",
-      content: "当前版本已禁用,请根据学校通知下载新版考生端程序进行考试!",
+      content: () => {
+        return h("div", [
+          h("div", [
+            "当前版本已禁用,请根据学校通知下载新版考生端程序进行考试!",
+          ]),
+          h(
+            "div",
+            {
+              style: {
+                "user-select": "text",
+              },
+            },
+            [
+              h("span", [
+                "下载地址: ",
+                h(
+                  "a",
+                  {
+                    href: "https://cdn.exam-cloud.cn/oe-student-client/setup/setup_ynou_V1.0.0.exe",
+                  },
+                  [
+                    "https://cdn.exam-cloud.cn/oe-student-client/setup/setup_ynou_V1.0.0.exe",
+                  ]
+                ),
+              ]),
+            ]
+          ),
+        ]);
+      },
       positiveText: "确定",
       positiveText: "确定",
       maskClosable: false,
       maskClosable: false,
       closeOnEsc: false,
       closeOnEsc: false,