字段修改,添加websocket
This commit is contained in:
@@ -40,13 +40,13 @@
|
||||
<view class="zd-row mgb20">
|
||||
<view class="zd-col-4 login_label">域名</view>
|
||||
<view class="zd-col-20">
|
||||
<input type="text" placeholder="域名地址" v-model="baseUrl" class="inputStyle">
|
||||
<input type="text" placeholder="域名地址" v-model.trim="baseUrl" class="inputStyle">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row mgb20">
|
||||
<view class="zd-col-6 login_label">刷新时间</view>
|
||||
<view class="zd-col-18">
|
||||
<input type="number" placeholder="刷新时间" v-model="setTime" class="inputStyle">
|
||||
<input type="number" placeholder="刷新时间" v-model.trim="setTime" class="inputStyle">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -74,7 +74,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
loginname: '',
|
||||
loginname: this.$store.getters.loginName,
|
||||
password: '',
|
||||
baseUrl: this.$store.getters.baseUrl,
|
||||
setTime: this.$store.getters.setTime / 1000,
|
||||
@@ -140,6 +140,7 @@
|
||||
let res = await handLogin(this.loginname, RSAencrypt(this.password))
|
||||
this.$store.dispatch('saveUserInfo', JSON.stringify(res.user.user))
|
||||
this.$store.dispatch('saveToken', res.token)
|
||||
this.$store.dispatch('saveLoginName', this.loginname)
|
||||
uni.redirectTo({
|
||||
url: '/pages/home/home'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user