mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-24 19:28:11 +00:00
perf: 优化网络错误提示框
This commit is contained in:
parent
453230d774
commit
fc4c44bbea
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mobile-tabbar">
|
<div class="mobile-tabbar">
|
||||||
|
<NetworkException v-if="windowSmall" type="alert"/>
|
||||||
<transition name="mobile-fade">
|
<transition name="mobile-fade">
|
||||||
<div v-if="isMore" class="more-mask" @click="toggleRoute('more')"></div>
|
<div v-if="isMore" class="more-mask" @click="toggleRoute('more')"></div>
|
||||||
</transition>
|
</transition>
|
||||||
@ -16,7 +17,6 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</transition>
|
</transition>
|
||||||
<NetworkException v-if="windowSmall" type="alert"/>
|
|
||||||
<ul class="tabbar-box">
|
<ul class="tabbar-box">
|
||||||
<li v-for="item in navList" @click="toggleRoute(item.name)" :class="{active: activeName === item.name}">
|
<li v-for="item in navList" @click="toggleRoute(item.name)" :class="{active: activeName === item.name}">
|
||||||
<i class="taskfont" v-html="item.icon"></i>
|
<i class="taskfont" v-html="item.icon"></i>
|
||||||
|
|||||||
@ -1,8 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="common-network-exception">
|
<div class="common-network-exception">
|
||||||
<Alert v-if="type==='alert' && show" type="error" show-icon closable>{{$L('网络连接失败,请检查网络设置。')}}</Alert>
|
<template v-if="type==='alert'">
|
||||||
|
<Alert v-if="show" type="error" show-icon closable>{{$L('网络连接失败,请检查网络设置。')}}</Alert>
|
||||||
|
</template>
|
||||||
|
<template v-else-if="type==='modal'">
|
||||||
<Modal
|
<Modal
|
||||||
v-else
|
|
||||||
v-model="show"
|
v-model="show"
|
||||||
:width="416"
|
:width="416"
|
||||||
:closable="false"
|
:closable="false"
|
||||||
@ -20,6 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user