退出登录,登录调整

This commit is contained in:
唐明明
2022-06-11 17:08:57 +08:00
parent ac0abecb52
commit 45e0350c90
112 changed files with 6 additions and 60063 deletions

View File

@@ -13,9 +13,9 @@
<input v-model="code" type="number" maxlength="4" placeholder="输入验证码">
<button :disabled="getSms" size="mini" @click="getPhoneCode()">{{sendCode}}</button>
</view>
<view class="auth-input">
<<!-- view class="auth-input">
<input v-model="parentId" type="number" placeholder="输入邀请码">
</view>
</view> -->
<view class="auth-button">
<button @click="login('code')">登录</button>
</view>
@@ -37,7 +37,7 @@
export default {
data() {
return {
phone : '18245180131',
phone : '',
code : '',
parentId: '',
getSms : false,

View File

@@ -201,13 +201,9 @@
},
// 退出登录
logOut() {
uni.removeStorage({
key: 'isnew',
success: () =>{
this.$store.commit('setToken', '');
this.$Router.replaceAll({name: 'Auth'})
}
})
uni.removeStorageSync('isnew')
this.$store.commit('setToken', '');
this.$Router.replaceAll({name: 'Auth'})
},
// 复制
copy(data) {