Browse Source

Update App.vue

1. 更新静默登录的代码.  调整为onLaunch中
moccus 2 years ago
parent
commit
b46e56650d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      exam-06173-uni/App.vue

+ 3 - 3
exam-06173-uni/App.vue

@@ -4,13 +4,13 @@
 	} from '@/api/user.js'
 	import md5 from 'js-md5'
 	export default {
-		onLoad: function(option) {
-			if(option && option.user){
+		onLaunch: function(options) {
+			if(options && options.query && options.query.user){
 				this.getUserInfo({
 					smsCode: "",
 					captchaKey: "",
 					captchaValue: "",
-					username: option.user,
+					username: options.query.user,
 					password: "",
 					mark: ""
 				}).then(res => {