This commit is contained in:
ln1778 2024-06-20 14:53:19 +08:00
parent fc13e32cd7
commit 47b31389d2
1 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ export default function (Vue, options) {
let dicttime=sessionStorage.getItem("dicttime");
if(dicttime&&new Date().getTime()-Number(dicttime)>1000*60*720){
options.onCreated && options.onCreated(this.dict)
this.dict.init(this.$options.dicts,this.$options.apiurl).then(() => {
this.dict.init(this.$options.dicts,this.$options.dictapiurl).then(() => {
this.dictstatus = true;
sessionStorage.setItem("dicttime",new Date().getTime());
options.onReady && options.onReady(this.dict)
@ -73,7 +73,7 @@ export default function (Vue, options) {
}
} else {
options.onCreated && options.onCreated(this.dict)
this.dict.init(this.$options.dicts,this.$options.apiurl).then(() => {
this.dict.init(this.$options.dicts,this.$options.dictapiurl).then(() => {
this.dictstatus = true;
sessionStorage.setItem("dicttime",new Date().getTime());
options.onReady && options.onReady(this.dict)