|
@@ -196,6 +196,7 @@ export function useExam() {
|
|
|
|
|
|
// 提示信息显示隐藏
|
|
// 提示信息显示隐藏
|
|
function useTishiLeftRight() {
|
|
function useTishiLeftRight() {
|
|
|
|
+ let timer = null;
|
|
const {
|
|
const {
|
|
updateTishi,
|
|
updateTishi,
|
|
getTishi
|
|
getTishi
|
|
@@ -205,11 +206,16 @@ function useTishiLeftRight() {
|
|
function handleCloseTishi() {
|
|
function handleCloseTishi() {
|
|
updateTishi();
|
|
updateTishi();
|
|
showTishi.value = false;
|
|
showTishi.value = false;
|
|
|
|
+ clearTimeout(timer);
|
|
|
|
+ timer = null;
|
|
}
|
|
}
|
|
// 大鹅显示追加缓存 --- 单独针对当前手机的缓存提示
|
|
// 大鹅显示追加缓存 --- 单独针对当前手机的缓存提示
|
|
function handleShowTishi() {
|
|
function handleShowTishi() {
|
|
const isNotShow = Boolean(getTishi());
|
|
const isNotShow = Boolean(getTishi());
|
|
showTishi.value = !isNotShow;
|
|
showTishi.value = !isNotShow;
|
|
|
|
+ timer = setTimeout(() => {
|
|
|
|
+ handleCloseTishi();
|
|
|
|
+ },3000)
|
|
}
|
|
}
|
|
|
|
|
|
return {
|
|
return {
|