|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="header"> |
|
|
|
|
<div style="line-height: 60px"> |
|
|
|
|
<img v-if="isSq" |
|
|
|
|
<img v-if="Setting.isSq" |
|
|
|
|
class="logo" |
|
|
|
|
style="max-height: 100%" |
|
|
|
|
src="/images/1.png" |
|
|
|
@ -11,8 +11,13 @@ |
|
|
|
|
:src="logoUrl" /> |
|
|
|
|
<span class="title">{{ title }}</span> |
|
|
|
|
</div> |
|
|
|
|
<el-radio-group v-if="Setting.isDev" |
|
|
|
|
v-model="ip" |
|
|
|
|
@change="ipChange"> |
|
|
|
|
<el-radio :label="0">刘榕ip</el-radio> |
|
|
|
|
<el-radio :label="1">陈赓ip</el-radio> |
|
|
|
|
</el-radio-group> |
|
|
|
|
<div class="action"> |
|
|
|
|
|
|
|
|
|
<el-popover placement="top" |
|
|
|
|
:disabled="!notices.length"> |
|
|
|
|
<p v-for="(item, i) in notices" |
|
|
|
@ -84,7 +89,7 @@ import Bus from '@/libs/bus' |
|
|
|
|
export default { |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
isSq: Setting.isSq, |
|
|
|
|
Setting, |
|
|
|
|
passwordVisible: false, |
|
|
|
|
passwordForm: { |
|
|
|
|
password: "", |
|
|
|
@ -92,7 +97,8 @@ export default { |
|
|
|
|
reNewPassword: "" |
|
|
|
|
}, |
|
|
|
|
notices: [], |
|
|
|
|
noticeTimer: null |
|
|
|
|
noticeTimer: null, |
|
|
|
|
ip: localStorage.getItem('localIp') ? +localStorage.getItem('localIp') : 0, |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -233,7 +239,12 @@ export default { |
|
|
|
|
this.passwordVisible = false; |
|
|
|
|
}).catch(err => { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
ipChange (val) { |
|
|
|
|
localStorage.setItem('localIp', val) |
|
|
|
|
location.reload() |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|