刷新时间

This commit is contained in:
2022-09-20 14:37:35 +08:00
parent 70b9a249c5
commit 6681520475
2 changed files with 10 additions and 5 deletions

View File

@@ -33,8 +33,8 @@
<button v-show="showBtn1" class="iconfont login_icon delete_icon" @click="clearData(1)"></button>
</div>
<div class="inputOuter">
<!-- <input type="text" placeholder="图片域名地址" class="inputStyle" v-model="imgBaseUrl">
<button v-show="showBtn2" class="iconfont login_icon delete_icon" @click="clearData(2)"></button> -->
<input type="number" placeholder="刷新时间(秒)" class="inputStyle" v-model="setTime">
<button v-show="showBtn2" class="iconfont login_icon delete_icon" @click="clearData(2)"></button>
</div>
</div>
<div class="submit">
@@ -57,6 +57,7 @@ export default {
password: '',
baseUrl: this.$store.getters.baseUrl,
imgBaseUrl: this.$store.getters.imgBaseUrl,
setTime: this.$store.getters.setTime / 1000,
inputType: 'password',
eyeOpen: true,
drift: 0,
@@ -71,7 +72,7 @@ export default {
return this.baseUrl !== ''
},
showBtn2 () {
return this.imgBaseUrl !== ''
return this.setTime !== ''
},
showBtn3 () {
return this.loginname !== ''
@@ -126,7 +127,7 @@ export default {
this.baseUrl = ''
break
case 2:
this.imgBaseUrl = ''
this.setTime = ''
break
case 3:
this.loginname = ''
@@ -144,7 +145,7 @@ export default {
_config () {
let obj = {
baseUrl: this.baseUrl,
imgBaseUrl: this.imgBaseUrl
setTime: this.setTime * 1000
}
this.$store.dispatch('setConfig', obj)
this._tabChange(0)