判断是否为无界,显示隐藏底图升级数据恢复等操作
This commit is contained in:
parent
601a95a33e
commit
a45c188c1e
|
@ -222,8 +222,8 @@
|
|||
style="color: #ffbe4a; font-size: 2.5em"
|
||||
></q-icon>
|
||||
{{
|
||||
props.value.length > 35
|
||||
? props.value.substr(0, 35) + "..."
|
||||
props.value.length > 25
|
||||
? props.value.substr(0, 25) + "..."
|
||||
: props.value
|
||||
}}
|
||||
|
||||
|
|
|
@ -357,6 +357,7 @@
|
|||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
v-if="!iswujie"
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="$refs.background_image_dialog.showDialog()"
|
||||
|
@ -370,6 +371,7 @@
|
|||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
v-if="!iswujie"
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="$refs.recovery_database_dialog.showDialog()"
|
||||
|
@ -405,6 +407,7 @@
|
|||
</q-item-section>
|
||||
</q-item>
|
||||
<q-item
|
||||
v-if="!iswujie"
|
||||
clickable
|
||||
v-close-popup
|
||||
@click="$refs.upgrade_dialog.showDialog()"
|
||||
|
@ -487,7 +490,7 @@
|
|||
|
||||
<q-separator vertical inset />
|
||||
|
||||
<q-item v-if="isfan">
|
||||
<q-item v-if="!iswujie">
|
||||
<q-item-section avatar style="margin-right: 0px; padding-right: 0px">
|
||||
<!-- <q-icon class="text-white rotate" name="img:svgs/fan.svg" /> -->
|
||||
<!-- <q-icon class="text-white rotate" name="img:new_icon/fan.png" /> -->
|
||||
|
@ -722,9 +725,9 @@ export default defineComponent({
|
|||
show_device_list.value =
|
||||
typeof (<any>window).user_search?.hide_device_list == "undefined";
|
||||
});
|
||||
let isfan = ref(true);
|
||||
let iswujie=ref(false)
|
||||
if ((window as any).$wujie) {
|
||||
isfan.value = false;
|
||||
iswujie.value=true
|
||||
}
|
||||
return {
|
||||
getconfig,
|
||||
|
@ -737,7 +740,7 @@ export default defineComponent({
|
|||
power_flag,
|
||||
fan,
|
||||
isfull,
|
||||
isfan,
|
||||
iswujie,
|
||||
async backupDB() {
|
||||
let client = GlobalData.getInstance().getCurrentClient();
|
||||
if (client) {
|
||||
|
@ -830,9 +833,12 @@ export default defineComponent({
|
|||
},
|
||||
logout() {
|
||||
const w = window as any;
|
||||
console.log(w)
|
||||
if (w.controlLogout && typeof w.controlLogout == "function") {
|
||||
console.log(1)
|
||||
w.controlLogout();
|
||||
} else {
|
||||
console.log(2)
|
||||
Cookies.remove("auto_login");
|
||||
SessionStorage.clear();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue