This commit is contained in:
parent
fc13e32cd7
commit
47b31389d2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue