This commit is contained in:
parent
fc13e32cd7
commit
47b31389d2
|
@ -26,7 +26,7 @@ export default function (Vue, options) {
|
||||||
let dicttime=sessionStorage.getItem("dicttime");
|
let dicttime=sessionStorage.getItem("dicttime");
|
||||||
if(dicttime&&new Date().getTime()-Number(dicttime)>1000*60*720){
|
if(dicttime&&new Date().getTime()-Number(dicttime)>1000*60*720){
|
||||||
options.onCreated && options.onCreated(this.dict)
|
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;
|
this.dictstatus = true;
|
||||||
sessionStorage.setItem("dicttime",new Date().getTime());
|
sessionStorage.setItem("dicttime",new Date().getTime());
|
||||||
options.onReady && options.onReady(this.dict)
|
options.onReady && options.onReady(this.dict)
|
||||||
|
@ -73,7 +73,7 @@ export default function (Vue, options) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
options.onCreated && options.onCreated(this.dict)
|
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;
|
this.dictstatus = true;
|
||||||
sessionStorage.setItem("dicttime",new Date().getTime());
|
sessionStorage.setItem("dicttime",new Date().getTime());
|
||||||
options.onReady && options.onReady(this.dict)
|
options.onReady && options.onReady(this.dict)
|
||||||
|
|
Loading…
Reference in New Issue