lex-xin vor 5 Jahren
Ursprung
Commit
32453520a5
2 geänderte Dateien mit 14 neuen und 0 gelöschten Zeilen
  1. 7 0
      src/views/app/Account.vue
  2. 7 0
      src/views/app/CourseDetail.vue

+ 7 - 0
src/views/app/Account.vue

@@ -53,8 +53,15 @@ export default {
     },
     methods: {
         __init() {
+            this.$toast.loading({
+                duration: 0,
+                message: '加载中...',
+                forbidClick: true,
+                loadingType: 'spinner'
+            })
             sysTenantAccountGet().then(res => {
                 let result = res.data
+                this.$toast.clear()
                 if(result.code == 200) {
                     let tempResult = result.data
                     if(tempResult) {

+ 7 - 0
src/views/app/CourseDetail.vue

@@ -104,8 +104,15 @@ export default {
     },
     methods: {
         __init() {
+            this.$toast.loading({
+                duration: 0,
+                message: '加载中...',
+                forbidClick: true,
+                loadingType: 'spinner'
+            })
             getStuAndTeaReview({ courseId: this.courseId}).then(res => {
                 let result = res.data
+                this.$toast.clear()
                 if(result.code == 200) {
                     let tempResult = result.data
                     if(tempResult) {