Prechádzať zdrojové kódy

[FIX] loading 体验优化

Kunduin 7 rokov pred
rodič
commit
96986db7aa

+ 1 - 1
src/views/teacher/Code/index.vue

@@ -20,8 +20,8 @@
     </page-header>
 
     <page-body>
+      <page-section-loading :show="loadingCodeList" />
       <div class="data-table">
-        <page-section-loading :show="loadingCodeList" />
         <b-table
           v-if="!loadingCodeList"
           :data="codeData"

+ 2 - 0
src/views/teacher/Review/index.vue

@@ -264,7 +264,9 @@ export default {
   methods: {
     async getReviewList() {
       const { courseId } = this.$route.params;
+      this.reviewListLoading = true;
       const { data } = await getTeacherCourseReviewList(courseId);
+      this.reviewListLoading = false;
       this.review = data;
     },
     async getDocHomework() {

+ 3 - 3
vue.config.js

@@ -2,9 +2,9 @@ module.exports = {
   devServer: {
     proxy: {
       "^/api": {
-        //target: "http://localhost:4000/",
-        target: "http://10.1.1.198:8080/",
-        // target: "http://192.168.0.101:8080",
+        // target: "http://localhost:4000/",
+        // target: "http://10.1.1.198:8080/",
+        target: "http://192.168.0.101:8080",
         // target: "http://10.1.2.3:8080/",
 
         ws: true,