Просмотр исходного кода

首页去除初始加载中的动画

wgl 4 лет назад
Родитель
Сommit
a7785d3362

+ 3 - 3
src/projects/business/views/Master/Home.vue

@@ -159,7 +159,7 @@
 		methods: {
 			//获取用户角色列表
 			getRoleList() {
-				this.isLoading = true;
+				//this.isLoading = true;
 				API_User.getRoleList().then(response => {
 					this.isLoading = false;
 
@@ -202,7 +202,7 @@
 			},
 			//预读取通知消息
 			prefetchNotice() {
-				this.isLoading = true;
+				//this.isLoading = true;
 				API_Notice.prefetch().then(response => {
 					this.isLoading = false;
 
@@ -214,7 +214,7 @@
 			},
 			//获取最新二条通知消息
 			getLastNotice() {
-				this.isLoading = true;
+				//this.isLoading = true;
 				API_Notice.getTopList({
 					type: 1,
 					limit: 2,

+ 3 - 3
src/projects/pension/views/Master/Home.vue

@@ -177,7 +177,7 @@
 			},
 			//获取用户角色列表
 			getRoleList() {
-				this.isLoading = true;
+				//this.isLoading = true;
 				API_User.getRoleList().then(response => {
 					this.isLoading = false;
 
@@ -220,7 +220,7 @@
 			},
 			//预读取通知消息
 			prefetchNotice() {
-				this.isLoading = true;
+				//this.isLoading = true;
 				API_Notice.prefetch().then(response => {
 					this.isLoading = false;
 
@@ -232,7 +232,7 @@
 			},
 			//获取最新二条通知消息
 			getLastNotice() {
-				this.isLoading = true;
+				//this.isLoading = true;
 				API_Notice.getTopList({
 					type: 1,
 					limit: 2,