@gct-paas/core 0.0.1-dev.19 → 0.0.1-dev.20

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.
@@ -5,7 +5,7 @@ export declare const STYLE_NAMESPACE_TAG = "gct";
5
5
  /**
6
6
  * 插件基础路径
7
7
  */
8
- export declare const PLUGIN_BASE_URL = "/minio/plugins";
8
+ export declare const PLUGIN_BASE_URL = "/minio";
9
9
  export { EditorRegisterConst } from './editor-register/editor-register';
10
10
  export { EditorType, EditorTypeOld } from './editor-type/editor-type';
11
11
  export { FormContainerType } from './form-container-type/form-container-type';
@@ -5,6 +5,6 @@ export { CoreConst } from './core.mjs';
5
5
 
6
6
  "use strict";
7
7
  const STYLE_NAMESPACE_TAG = "gct";
8
- const PLUGIN_BASE_URL = "/minio/plugins";
8
+ const PLUGIN_BASE_URL = "/minio";
9
9
 
10
10
  export { PLUGIN_BASE_URL, STYLE_NAMESPACE_TAG };
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import * as qs from 'qs';
2
+ import qs from 'qs';
3
3
  import { deepMerge } from '../tools/tools.mjs';
4
4
  import { interceptors } from './interceptors.mjs';
5
5
  import '../../enums/index.mjs';
@@ -51,7 +51,7 @@ class PluginPgkUtil {
51
51
  static async loadPlugins(mode, configs) {
52
52
  if (configs.length > 0) {
53
53
  const plugins = configs.map((plugin) => {
54
- const baseUrl = path.join(PLUGIN_BASE_URL, plugin.name, "latest/dist");
54
+ const baseUrl = path.join(PLUGIN_BASE_URL, plugin.url, "dist");
55
55
  return {
56
56
  imports: {
57
57
  [plugin.name]: `${baseUrl}/${mode}.system.min.js`
@@ -85,6 +85,7 @@ class PluginPgkUtil {
85
85
  * @returns {*}
86
86
  */
87
87
  static async loadPlugin(app, mode, platform, kit) {
88
+ kit = ["common", ...kit];
88
89
  const tag = `${mode}-${platform}-${kit.join("_")}`;
89
90
  try {
90
91
  const configs = await this.loadPluginConfig(mode, platform);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gct-paas/core",
3
- "version": "0.0.1-dev.19",
3
+ "version": "0.0.1-dev.20",
4
4
  "type": "module",
5
5
  "description": "paas 平台核心包",
6
6
  "main": "dist/index.min.cjs",
@@ -56,8 +56,8 @@
56
56
  "vue-i18n": "9.6.5"
57
57
  },
58
58
  "devDependencies": {
59
- "@gct-paas/build": "0.0.1-dev.19",
60
- "@gct-paas/cli": "0.0.1-dev.19",
59
+ "@gct-paas/build": "0.0.1-dev.20",
60
+ "@gct-paas/cli": "0.0.1-dev.20",
61
61
  "@types/path-browserify": "^1.0.3",
62
62
  "@types/qs": "^6.9.18",
63
63
  "fs-extra": "^11.3.0"
@@ -65,5 +65,5 @@
65
65
  "peerDependencies": {
66
66
  "vue": "^3.x"
67
67
  },
68
- "gitHead": "37f06cee9864d6c619044900360504c50c865e89"
68
+ "gitHead": "9266f204c9c400c60c3aeffe6981eed0992fc243"
69
69
  }