单点监控面板完成
This commit is contained in:
@@ -1,7 +1,24 @@
|
||||
import {dicts} from "@/utils/dicts";
|
||||
import axios from 'axios'
|
||||
|
||||
window.axios = axios
|
||||
const KENGEE_CDN_BASE = "http://10.0.97.209/presource/datascreen/"
|
||||
const libs = [`${KENGEE_CDN_BASE}/js/pinyin.min.js`]
|
||||
|
||||
Promise.all([
|
||||
window.$glob = {}
|
||||
window.$dicts = dicts
|
||||
window.$waitFor = (target, t = 500) => new Promise(resolve => {
|
||||
const interval = setInterval(() => {
|
||||
if (target) {
|
||||
clearInterval(interval)
|
||||
resolve(target)
|
||||
}
|
||||
}, t)
|
||||
if (target) {
|
||||
clearInterval(interval)
|
||||
resolve(target)
|
||||
}
|
||||
})
|
||||
export default Promise.all([
|
||||
import("./fetch"),
|
||||
...libs.map(url => new Promise(resolve => {
|
||||
const script = document.createElement("script")
|
||||
|
||||
Reference in New Issue
Block a user