agilebuilder-ui 1.0.71-tmp2 → 1.0.71-tmp3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agilebuilder-ui",
3
- "version": "1.0.71tmp2",
3
+ "version": "1.0.71tmp3",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "main": "./lib/super-ui.js",
package/src/index.js CHANGED
@@ -34,7 +34,6 @@ import { openPage } from './utils/jump-page-utils'
34
34
  // import SecretInfo from '../packages/secret-info'
35
35
  import plugins from '../packages/plugins/index'
36
36
  import permission from './directives/permission'
37
- import LoadScript from 'vue-plugin-load-script'
38
37
 
39
38
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
40
39
  const install = function (Vue) {
@@ -42,7 +41,6 @@ const install = function (Vue) {
42
41
  permission.install(Vue)
43
42
  window.$vueApp.use(customPlugin)
44
43
  window.$vueApp.use(plugins)
45
- window.$vueApp.use(LoadScript)
46
44
  if (install.installed) return
47
45
  // components.map(component => Vue.component(component.name, component))
48
46
  // components.forEach(component => {
@@ -91,5 +89,5 @@ if (typeof window !== 'undefined' && window.Vue) {
91
89
 
92
90
  export default {
93
91
  // 导出的对象必须具有 install,才能被 Vue.use() 方法安装
94
- install
92
+ install,
95
93
  }
@@ -435,7 +435,6 @@ export function windowOpenUrl(url, projectModel) {
435
435
 
436
436
  // 首次加载业务系统时,缓存当前用户语言
437
437
  export function cacheCurrentLanguageUtil(http) {
438
- const that = this
439
438
  return new Promise((resolve, reject) => {
440
439
  const token = getToken()
441
440
  if (token) {
@@ -458,7 +457,7 @@ export function cacheCurrentLanguageUtil(http) {
458
457
  .then((langInfo) => {
459
458
  debugger
460
459
  if (langInfo.i18nFileUrls && langInfo.i18nFileUrls[langInfo.language]) {
461
- that.$loadScript(langInfo.i18nFileUrls[langInfo.language])
460
+ window.$vueApp.config.globalProperties.$loadScript(langInfo.i18nFileUrls[langInfo.language])
462
461
  }
463
462
  resolve(langInfo.language)
464
463
  })