MrShi
3 天以前 f0b733b44d546980020bb8ed1bad8c0456659aba
mini-program/pages/login/login.vue
@@ -55,7 +55,7 @@
         this.checkLogin()
      },
      methods:{
         checkLogin(){
         async checkLogin(){
            if( !this.shopInfo && !this.shopToken){
               let res = await that.$u.api.getUserInfo()
               if (res.code === 200) {
@@ -93,7 +93,7 @@
               return
            }
            this.$u.api.shopPasswordLogin(this.form)
               .then(res => {
               .then(async (res) => {
                  if (res.code === 200) { 
                     await that.$store.commit('setShopInfo', res.data.member)
                     await that.$store.commit('setShopToken', res.data.token)