mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-24 02:48:12 +00:00
perf: 优化网络错误提示框
This commit is contained in:
parent
453230d774
commit
fc4c44bbea
@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<div class="mobile-tabbar">
|
||||
<NetworkException v-if="windowSmall" type="alert"/>
|
||||
<transition name="mobile-fade">
|
||||
<div v-if="isMore" class="more-mask" @click="toggleRoute('more')"></div>
|
||||
</transition>
|
||||
@ -16,7 +17,6 @@
|
||||
</ul>
|
||||
</div>
|
||||
</transition>
|
||||
<NetworkException v-if="windowSmall" type="alert"/>
|
||||
<ul class="tabbar-box">
|
||||
<li v-for="item in navList" @click="toggleRoute(item.name)" :class="{active: activeName === item.name}">
|
||||
<i class="taskfont" v-html="item.icon"></i>
|
||||
|
||||
@ -1,8 +1,10 @@
|
||||
<template>
|
||||
<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
|
||||
v-else
|
||||
v-model="show"
|
||||
:width="416"
|
||||
:closable="false"
|
||||
@ -20,6 +22,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</Modal>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user