退出登录,登录调整
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user