lex 1 年之前
父节点
当前提交
9459cb145c
共有 3 个文件被更改,包括 11 次插入5 次删除
  1. 3 1
      src/components/layout/index.tsx
  2. 6 2
      src/views/classList/index.tsx
  3. 2 2
      vite.config.ts

+ 3 - 1
src/components/layout/index.tsx

@@ -359,7 +359,9 @@ export default defineComponent({
         '/classDetail',
         '/classStudentDetail',
         '/notation',
-        '/xiaoku-ai'
+        '/xiaoku-ai',
+        '/classStudentRecode',
+        '/afterWorkDetail'
       ];
       // 单独判断个人信息页面[学校设置]有引导
       if (route.path === '/setting') {

+ 6 - 2
src/views/classList/index.tsx

@@ -85,7 +85,7 @@ export default defineComponent({
         gradeLevel: ''
       };
       if (state.popSelectYearList.length > 0) {
-        state.searchForm.gradeYear = state.popSelectYearList[0].id;
+        state.searchForm.gradeYear = state.popSelectYearList[1].id;
       }
       getList();
     };
@@ -359,9 +359,13 @@ export default defineComponent({
         temp.forEach((i: any) => {
           i.name = i.name + '学年';
         });
+        temp.unshift({
+          id: '',
+          name: '全部学年'
+        });
         state.popSelectYearList = temp || [];
         if (temp.length > 0) {
-          state.searchForm.gradeYear = temp[0].id;
+          state.searchForm.gradeYear = temp[1].id;
         }
       } catch {
         //

+ 2 - 2
vite.config.ts

@@ -23,8 +23,8 @@ function resolve(dir: string) {
 }
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
-const proxyUrl = 'https://dev.kt.colexiu.com/';
-// const proxyUrl = 'https://test.lexiaoya.cn';
+// const proxyUrl = 'https://dev.kt.colexiu.com/';
+const proxyUrl = 'https://test.lexiaoya.cn';
 export default defineConfig({
   base: './',
   plugins: [