“dzb”
2022-09-29 dc04c05b22a5323925218092a0687555a2a5c9c1
src/views/login/index.vue
@@ -125,6 +125,7 @@
        })
        .then(function (response) {
          if (response.code === 200) {
            // 设置toke时间
            // 保存token
            console.log(response);
            sessionStorage.setItem('token',response.data.token);
@@ -135,7 +136,10 @@
          }else{
            that.$refs.loginForm.validate((valid)=>{
              if(valid){
                that.$message.error(response.data.message);
                that.$message({
                  type:'warning',
                  message:response.message
                })
              }
            })
          }