彭宇 1 anno fa
parent
commit
14692d4786
3 ha cambiato i file con 2 aggiunte e 10 eliminazioni
  1. 2 8
      pages/demo/index.vue
  2. 0 1
      pages/login.vue
  3. 0 1
      utils/request.js

+ 2 - 8
pages/demo/index.vue

@@ -51,18 +51,12 @@ import {getUserProfile} from '@/api/system/user';
 			console.log("token");
 			console.log(getToken())
 			this.userInfo = getApp().globalData.userInfo;
-			this.ss();
 		},
 		methods: {
 			tiaozhuan(){
 				uni.navigateTo({
 					url:"/pages/delis"
 				})
-			},
-			ss(){
-				getUserProfile().then(res => {
-					this.rows = res.data;
-				})
 			}
 		}
 	}
@@ -78,9 +72,9 @@ import {getUserProfile} from '@/api/system/user';
 		justify-content: space-between;
 		align-items: flex-end;
 	}
-	
+
 	.chat-custom-text {
 		font-size: 12px;
 		color: #999;
 	}
-</style>
+</style>

+ 0 - 1
pages/login.vue

@@ -19,7 +19,6 @@
 		},
 		created() {
 
-			this.getUserInfo();
 		},
 		methods: {
 		   getUserInfo() {

+ 0 - 1
utils/request.js

@@ -8,7 +8,6 @@ let timeout = 10000
 const baseUrl = config.baseUrl
 
 const request = config => {
-	debugger
   // 是否需要设置 token
   const isToken = (config.headers || {}).isToken === false
   config.header = config.header || {}