mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
no message
This commit is contained in:
parent
b267863b58
commit
c2dd15fca1
@ -53,23 +53,24 @@ export default {
|
||||
},
|
||||
|
||||
created() {
|
||||
this.electronEvents();
|
||||
this.eeuiEvents();
|
||||
this.otherEvents();
|
||||
this.electronEvents()
|
||||
this.eeuiEvents()
|
||||
this.otherEvents()
|
||||
},
|
||||
|
||||
mounted() {
|
||||
window.addEventListener('resize', this.windowSizeListener);
|
||||
window.addEventListener('scroll', this.windowScrollListener);
|
||||
window.addEventListener('resize', this.windowSizeListener)
|
||||
window.addEventListener('scroll', this.windowScrollListener)
|
||||
window.addEventListener('message', this.windowHandleMessage)
|
||||
this.searchInter = setInterval(this.searchEnter, 1000);
|
||||
this.searchInter = setInterval(this.searchEnter, 1000)
|
||||
$A.loadVConsole()
|
||||
},
|
||||
|
||||
beforeDestroy() {
|
||||
window.removeEventListener('resize', this.windowSizeListener);
|
||||
window.removeEventListener('scroll', this.windowScrollListener);
|
||||
window.removeEventListener('resize', this.windowSizeListener)
|
||||
window.removeEventListener('scroll', this.windowScrollListener)
|
||||
window.removeEventListener('message', this.windowHandleMessage)
|
||||
this.searchInter && clearInterval(this.searchInter);
|
||||
this.searchInter && clearInterval(this.searchInter)
|
||||
},
|
||||
|
||||
computed: {
|
||||
@ -112,24 +113,6 @@ export default {
|
||||
});
|
||||
}, 6000)
|
||||
}
|
||||
//
|
||||
$A.IDBString("logOpen").then(r => {
|
||||
$A.openLog = r === "open"
|
||||
if ($A.openLog) {
|
||||
$A.loadScript('js/vconsole.min.js').then(_ => {
|
||||
window.vConsole = new window.VConsole({
|
||||
onReady: () => {
|
||||
console.log('vConsole: onReady');
|
||||
},
|
||||
onClearLog: () => {
|
||||
console.log('vConsole: onClearLog');
|
||||
}
|
||||
});
|
||||
}).catch(_ => {
|
||||
$A.modalError("vConsole 组件加载失败!");
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
immediate: true
|
||||
|
||||
2
resources/assets/js/functions/common.js
vendored
2
resources/assets/js/functions/common.js
vendored
@ -1932,7 +1932,7 @@ const localforage = require("localforage");
|
||||
|
||||
/**
|
||||
* =============================================================================
|
||||
* ***************************** ajaxc ****************************
|
||||
* *********************************** ajaxc *******************************
|
||||
* =============================================================================
|
||||
*/
|
||||
$.extend({
|
||||
|
||||
43
resources/assets/js/functions/web.js
vendored
43
resources/assets/js/functions/web.js
vendored
@ -926,6 +926,49 @@ import {MarkdownPreview} from "../store/markdown";
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
/**
|
||||
* 加载 VConsole 日志组件
|
||||
* @param key
|
||||
*/
|
||||
loadVConsole(key = undefined) {
|
||||
if (typeof key === "string") {
|
||||
switch (key) {
|
||||
case 'log.o':
|
||||
$A.IDBSet("logOpen", "open").then(_ => {
|
||||
$A.loadVConsole()
|
||||
});
|
||||
return true;
|
||||
case 'log.c':
|
||||
$A.IDBSet("logOpen", "close").then(_ => {
|
||||
$A.loadVConsole()
|
||||
});
|
||||
return true;
|
||||
}
|
||||
return false
|
||||
}
|
||||
$A.IDBString("logOpen").then(r => {
|
||||
if (typeof window.vConsole !== "undefined") {
|
||||
window.vConsole.destroy();
|
||||
window.vConsole = null;
|
||||
}
|
||||
$A.openLog = r === "open"
|
||||
if ($A.openLog) {
|
||||
$A.loadScript('js/vconsole.min.js').then(_ => {
|
||||
window.vConsole = new window.VConsole({
|
||||
onReady: () => {
|
||||
console.log('VConsole: onReady');
|
||||
},
|
||||
onClearLog: () => {
|
||||
console.log('VConsole: onClearLog');
|
||||
}
|
||||
});
|
||||
}).catch(_ => {
|
||||
$A.modalError("VConsole 组件加载失败!");
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
@ -123,6 +123,10 @@ export default {
|
||||
if (val == '') {
|
||||
return;
|
||||
}
|
||||
if ($A.loadVConsole(val)) {
|
||||
this.projectKeyValue = '';
|
||||
return;
|
||||
}
|
||||
this.projectKeyLoading++;
|
||||
setTimeout(() => {
|
||||
if (this.projectKeyValue == val) {
|
||||
|
||||
@ -529,17 +529,9 @@ export default {
|
||||
|
||||
dialogSearchKey(val) {
|
||||
this.$store.state.messengerSearchKey.dialog = val
|
||||
switch (val) {
|
||||
case 'log.o':
|
||||
$A.IDBSet("logOpen", "open").then(_ => {
|
||||
$A.reloadUrl()
|
||||
});
|
||||
break;
|
||||
case 'log.c':
|
||||
$A.IDBSet("logOpen", "close").then(_ => {
|
||||
$A.reloadUrl()
|
||||
});
|
||||
break;
|
||||
if ($A.loadVConsole(val)) {
|
||||
this.dialogSearchKey = '';
|
||||
return;
|
||||
}
|
||||
//
|
||||
this.dialogSearchList = [];
|
||||
|
||||
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -257,7 +257,7 @@ export default {
|
||||
setTimeout(_ => {
|
||||
cloneParams.__networkFailureRetry = true
|
||||
dispatch("call", cloneParams).then(resolve).catch(reject)
|
||||
}, 300)
|
||||
}, 1000)
|
||||
return
|
||||
}
|
||||
if (params.checkNetwork !== false) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user