瀏覽代碼

历史bug修复一个

刘洋 2 年之前
父節點
當前提交
8abffdcbe1
共有 4 個文件被更改,包括 19 次插入13 次删除
  1. 0 6
      components.d.ts
  2. 15 5
      src/devLoginParams.ts
  3. 3 1
      src/features/mark/CommonMarkBody.vue
  4. 1 1
      vite.config.ts

+ 0 - 6
components.d.ts

@@ -8,7 +8,6 @@ export {}
 declare module '@vue/runtime-core' {
   export interface GlobalComponents {
     AButton: typeof import('ant-design-vue/es')['Button']
-    ACol: typeof import('ant-design-vue/es')['Col']
     AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider']
     ADropdown: typeof import('ant-design-vue/es')['Dropdown']
     AForm: typeof import('ant-design-vue/es')['Form']
@@ -19,14 +18,9 @@ declare module '@vue/runtime-core' {
     AModal: typeof import('ant-design-vue/es')['Modal']
     APopconfirm: typeof import('ant-design-vue/es')['Popconfirm']
     APopover: typeof import('ant-design-vue/es')['Popover']
-    ARadio: typeof import('ant-design-vue/es')['Radio']
-    ARadioGroup: typeof import('ant-design-vue/es')['RadioGroup']
-    ARow: typeof import('ant-design-vue/es')['Row']
-    ASelect: typeof import('ant-design-vue/es')['Select']
     ASlider: typeof import('ant-design-vue/es')['Slider']
     ASpin: typeof import('ant-design-vue/es')['Spin']
     ASwitch: typeof import('ant-design-vue/es')['Switch']
-    ATextarea: typeof import('ant-design-vue/es')['Textarea']
     ATooltip: typeof import('ant-design-vue/es')['Tooltip']
     CommonMarkHeader: typeof import('./src/components/CommonMarkHeader.vue')['default']
     PageError404: typeof import('./src/components/PageError404.vue')['default']

+ 15 - 5
src/devLoginParams.ts

@@ -9,18 +9,28 @@
 // export const markerId="419";
 
 /** 244 评卷员 */
+// export const LOGIN_CONFIG = {
+//   isAdmin: false,
+//   forceChange: true,
+//   loginName: "1-339-5-1",
+//   // loginName: "liuyang",
+//   password: "123456",
+//   examId: "1",
+//   markerId: "147",
+//   // markerId: "482",
+//   // markerId: "483",
+// };
 export const LOGIN_CONFIG = {
   isAdmin: false,
-  forceChange: true,
-  loginName: "1-339-5-1",
+  forceChange: false,
+  loginName: "spj111-01",
   // loginName: "liuyang",
   password: "123456",
-  examId: "1",
-  markerId: "147",
+  examId: "232",
+  markerId: "2688",
   // markerId: "482",
   // markerId: "483",
 };
-
 /** 224 管理员 */
 // export const LOGIN_CONFIG = {
 //   isAdmin: true,

+ 3 - 1
src/features/mark/CommonMarkBody.vue

@@ -512,7 +512,9 @@ const renderPaperAndMark = async () => {
 // 在阻止渲染的情况下,watchEffect收集不到 store.currentTask 的依赖,会导致本组件不再更新
 watch(
   () => store.currentTask,
-  () => renderPaperAndMark()
+  () => {
+    setTimeout(renderPaperAndMark,1)
+  }
 );
 //#endregion : 计算裁切图和裁切图上的分数轨迹和特殊标记轨迹
 

+ 1 - 1
vite.config.ts

@@ -3,7 +3,7 @@ import vue from "@vitejs/plugin-vue";
 import ViteComponents from "unplugin-vue-components/vite";
 import { AntDesignVueResolver } from "unplugin-vue-components/resolvers";
 
-const SERVER_URL = "http://192.168.10.224";
+const SERVER_URL = "http://192.168.10.225";
 const path = require("path");
 
 function mockDevLogin(): Plugin {