From d019814580d02d10a450ba1cd73f6d42a16ec12c Mon Sep 17 00:00:00 2001 From: yy <40423888+yy-wow@users.noreply.github.com> Date: Wed, 6 Nov 2024 17:48:54 +0800 Subject: [PATCH 1/2] Refactoring useHttp to httpService (#886) * refactor/http-service --- designer-demo/package.json | 2 + designer-demo/registry.js | 3 +- .../src/composable/http}/Login.vue | 0 designer-demo/src/composable/http/index.js | 135 +++ designer-demo/src/composable/index.js | 1 + designer-demo/src/preview.js | 3 +- jsconfig.json | 2 - .../src/vite-plugins/devAliasPlugin.js | 1 - .../canvas/DesignCanvas/src/DesignCanvas.vue | 7 +- packages/canvas/package.json | 1 - .../common/composable/defaultGlobalService.js | 9 +- packages/common/composable/http/index.js | 65 ++ packages/common/composable/index.js | 1 + packages/common/js/http.js | 10 +- packages/common/js/vscodeGenerateFile.js | 18 +- packages/common/package.json | 2 +- packages/configurator/package.json | 1 - .../CollectionConfigurator.vue | 6 +- .../VariableConfigurator.vue | 18 +- packages/design-core/index.js | 3 +- packages/design-core/package.json | 1 - packages/design-core/src/init.js | 3 - packages/design-core/src/preview/src/main.js | 4 +- .../src/preview/src/preview/http.js | 15 +- .../src/preview/src/preview/importMap.json | 1 - .../src/preview/src/previewApp.vue | 76 +- .../engine-cli/template/designer/registry.js | 3 +- .../designer/src/composable/http/index.js | 36 + .../template/designer/src/composable/index.js | 1 + packages/http/index.js | 5 - packages/http/package.json | 44 - packages/http/src/axios.js | 151 --- packages/http/src/config.js | 29 - packages/http/src/index.js | 158 --- packages/http/src/mock.js | 939 ------------------ packages/http/vite.config.js | 39 - packages/plugins/block/package.json | 1 - .../plugins/block/src/js/blockSetting.jsx | 2 +- packages/plugins/block/src/js/http.js | 50 +- packages/plugins/bridge/package.json | 1 - packages/plugins/bridge/src/BridgeSetting.vue | 2 +- packages/plugins/bridge/src/http.js | 26 +- packages/plugins/bridge/src/js/resource.js | 2 +- packages/plugins/datasource/package.json | 1 - .../plugins/datasource/src/DataSourceForm.vue | 2 +- .../src/DataSourceGlobalDataHandler.vue | 2 +- .../plugins/datasource/src/DataSourceList.vue | 2 +- packages/plugins/datasource/src/js/http.js | 34 +- packages/plugins/help/package.json | 1 - packages/plugins/i18n/package.json | 1 - packages/plugins/i18n/src/Main.vue | 5 +- .../i18n/src/composable/useTranslate.js | 11 +- packages/plugins/materials/package.json | 1 - .../materials/src/composable/useMaterial.js | 17 +- .../materials/src/composable/useResource.js | 3 +- .../src/meta/block/src/BlockDetail.vue | 2 +- .../src/meta/block/src/BlockGroup.vue | 2 +- .../src/meta/block/src/BlockGroupPanel.vue | 2 +- .../src/meta/block/src/BlockList.vue | 2 +- .../src/meta/block/src/BlockPanel.vue | 2 +- .../materials/src/meta/block/src/http.js | 36 +- packages/plugins/page/package.json | 1 - .../plugins/page/src/PageFolderSetting.vue | 2 +- packages/plugins/page/src/PageSetting.vue | 2 +- packages/plugins/page/src/PageTree.vue | 2 +- packages/plugins/page/src/http.js | 29 +- packages/plugins/robot/package.json | 1 - packages/plugins/robot/src/Main.vue | 6 +- packages/plugins/robot/src/js/robotSetting.js | 5 +- packages/plugins/schema/package.json | 1 - packages/plugins/state/package.json | 1 - packages/plugins/state/src/js/http.js | 9 +- packages/plugins/tutorial/package.json | 1 - packages/plugins/tutorial/src/js/http.js | 10 +- packages/register/src/constants.js | 1 + packages/register/src/service.js | 5 + packages/settings/styles/package.json | 1 - packages/toolbars/breadcrumb/package.json | 1 - packages/toolbars/generate-code/package.json | 1 - packages/toolbars/generate-code/src/Main.vue | 3 +- packages/toolbars/generate-code/src/http.js | 13 +- packages/toolbars/lock/package.json | 1 - packages/toolbars/lock/src/http.js | 7 +- packages/toolbars/logo/package.json | 1 - packages/toolbars/logo/src/Main.vue | 33 +- packages/toolbars/logout/src/js/http.js | 6 +- 86 files changed, 510 insertions(+), 1636 deletions(-) rename {packages/http/src => designer-demo/src/composable/http}/Login.vue (100%) create mode 100644 designer-demo/src/composable/http/index.js create mode 100644 designer-demo/src/composable/index.js create mode 100644 packages/common/composable/http/index.js create mode 100644 packages/engine-cli/template/designer/src/composable/http/index.js create mode 100644 packages/engine-cli/template/designer/src/composable/index.js delete mode 100644 packages/http/index.js delete mode 100644 packages/http/package.json delete mode 100644 packages/http/src/axios.js delete mode 100644 packages/http/src/config.js delete mode 100644 packages/http/src/index.js delete mode 100644 packages/http/src/mock.js delete mode 100644 packages/http/vite.config.js diff --git a/designer-demo/package.json b/designer-demo/package.json index b726e2f58..52fa04552 100644 --- a/designer-demo/package.json +++ b/designer-demo/package.json @@ -12,12 +12,14 @@ "@opentiny/tiny-engine": "workspace:^", "@opentiny/tiny-engine-theme-dark": "workspace:*", "@opentiny/tiny-engine-theme-light": "workspace:*", + "@opentiny/tiny-engine-utils": "workspace:*", "@opentiny/vue": "~3.14.0", "@opentiny/vue-design-smb": "~3.14.0", "@opentiny/vue-icon": "~3.14.0", "@opentiny/vue-locale": "~3.14.0", "@opentiny/vue-renderless": "~3.14.0", "@opentiny/vue-theme": "~3.14.0", + "@vueuse/core": "^9.6.0", "vue": "^3.4.21" }, "devDependencies": { diff --git a/designer-demo/registry.js b/designer-demo/registry.js index 88a463480..45d09f154 100644 --- a/designer-demo/registry.js +++ b/designer-demo/registry.js @@ -45,11 +45,12 @@ import { GlobalService } from '@opentiny/tiny-engine' import engineConfig from './engine.config' +import { HttpService } from './src/composable' export default { root: { id: 'engine.root', - metas: [GenerateCodeService, GlobalService] + metas: [HttpService, GenerateCodeService, GlobalService] // GlobalService 依赖 HttpService,HttpService需要在前面处理 }, config: engineConfig, layout: { diff --git a/packages/http/src/Login.vue b/designer-demo/src/composable/http/Login.vue similarity index 100% rename from packages/http/src/Login.vue rename to designer-demo/src/composable/http/Login.vue diff --git a/designer-demo/src/composable/http/index.js b/designer-demo/src/composable/http/index.js new file mode 100644 index 000000000..f11538395 --- /dev/null +++ b/designer-demo/src/composable/http/index.js @@ -0,0 +1,135 @@ +import { createApp } from 'vue' +import { HttpService } from '@opentiny/tiny-engine' +import { useBroadcastChannel } from '@vueuse/core' +import { constants } from '@opentiny/tiny-engine-utils' +import Login from './Login.vue' + +const LOGIN_EXPIRED_CODE = 401 +const { BROADCAST_CHANNEL } = constants + +const { post: globalNotify } = useBroadcastChannel({ name: BROADCAST_CHANNEL.Notify }) + +const procession = { + promiseLogin: null, + mePromise: {} +} +let loginVM = null + +const showError = (url, message) => { + globalNotify({ + type: 'error', + title: '接口报错', + message: `报错接口: ${url} \n报错信息: ${message ?? ''}` + }) +} + +const preRequest = (config) => { + const isDevelopEnv = import.meta.env.MODE?.includes('dev') + + if (isDevelopEnv && config.url.match(/\/generate\//)) { + config.baseURL = '' + } + + const isVsCodeEnv = window.vscodeBridge + + if (isVsCodeEnv) { + config.baseURL = '' + } + + return config +} + +const preResponse = (res) => { + if (res.data?.error) { + showError(res.config?.url, res?.data?.error?.message) + + return Promise.reject(res.data.error) + } + + return res.data?.data +} + +const openLogin = () => { + if (!window.lowcode) { + const loginDom = document.createElement('div') + document.body.appendChild(loginDom) + loginVM = createApp(Login).mount(loginDom) + + window.lowcode = { + platformCenter: { + Session: { + rebuiltCallback: function () { + loginVM.closeLogin() + + procession.mePromise.resolve('login ok') + procession.promiseLogin = null + procession.mePromise = {} + } + } + } + } + } + + return new Promise((resolve, reject) => { + if (!procession.promiseLogin) { + procession.promiseLogin = loginVM.openLogin(procession, '/api/rebuildSession') + procession.promiseLogin.then((response) => { + HttpService.apis.request(response.config).then(resolve, reject) + }) + } + }) +} + +const errorResponse = (error) => { + // 用户信息失效时,弹窗提示登录 + const { response } = error + + if (response?.status === LOGIN_EXPIRED_CODE) { + // vscode 插件环境弹出输入框提示登录 + if (window.vscodeBridge) { + return Promise.resolve(true) + } + + // 浏览器环境弹出小窗登录 + if (response?.headers['x-login-url']) { + return openLogin() + } + } + + showError(error.config?.url, error?.message) + + return response?.data.error ? Promise.reject(response.data.error) : Promise.reject(error.message) +} + +const getConfig = (env = import.meta.env) => { + const baseURL = env.VITE_ORIGIN + // 仅在本地开发时,启用 withCredentials + const dev = env.MODE?.includes('dev') + // 获取租户 id + const getTenant = () => new URLSearchParams(location.search).get('tenant') + + return { + baseURL, + withCredentials: dev, + headers: { + ...(dev && { 'x-lowcode-mode': 'develop' }), + 'x-lowcode-org': getTenant() + } + } +} + +const customizeHttpService = () => { + const options = { + axiosConfig: getConfig(), + interceptors: { + request: [preRequest], + response: [[preResponse, errorResponse]] + } + } + + HttpService.apis.setOptions(options) + + return HttpService +} + +export default customizeHttpService() diff --git a/designer-demo/src/composable/index.js b/designer-demo/src/composable/index.js new file mode 100644 index 000000000..27b08c481 --- /dev/null +++ b/designer-demo/src/composable/index.js @@ -0,0 +1 @@ +export { default as HttpService } from './http' diff --git a/designer-demo/src/preview.js b/designer-demo/src/preview.js index 4e120d4c6..eb7717c66 100644 --- a/designer-demo/src/preview.js +++ b/designer-demo/src/preview.js @@ -14,6 +14,7 @@ import { initHook, HOOK_NAME, GenerateCodeService, Breadcrumb, Media, Lang } fro import { initPreview } from '@opentiny/tiny-engine' import 'virtual:svg-icons-register' import '@opentiny/tiny-engine-theme' +import { HttpService } from './composable' const beforeAppCreate = () => { initHook(HOOK_NAME.useEnv, import.meta.env) @@ -23,7 +24,7 @@ initPreview({ registry: { root: { id: 'engine.root', - metas: [GenerateCodeService] + metas: [HttpService, GenerateCodeService] }, config: { id: 'engine.config', theme: 'light' }, toolbars: [Breadcrumb, Media, Lang] diff --git a/jsconfig.json b/jsconfig.json index 06993f594..9011eef09 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -35,7 +35,6 @@ "@opentiny/tiny-engine-theme-dark": ["packages/theme/dark/index.less"], "@opentiny/tiny-engine-theme-light": ["packages/theme/light/index.less"], "@opentiny/tiny-engine-svgs": ["packages/svgs/index"], - "@opentiny/tiny-engine-http": ["packages/http/index"], "@opentiny/tiny-engine-plugin-materials/*": ["packages/plugins/materials/*"], "@opentiny/tiny-engine-plugin-state/*": ["packages/plugins/state/*"], "@opentiny/tiny-engine-plugin-script/*": ["packages/plugins/script/*"], @@ -62,7 +61,6 @@ "@opentiny/tiny-engine-theme-dark/*": ["packages/theme/dark/*"], "@opentiny/tiny-engine-theme-light/*": ["packages/theme/light/*"], "@opentiny/tiny-engine-svgs/*": ["packages/svgs/*"], - "@opentiny/tiny-engine-http/*": ["packages/http/*"], "@opentiny/tiny-engine-utils": ["packages/utils/src/index.js"], "@opentiny/tiny-engine-webcomponent-core": ["packages/webcomponent/src/lib"], "@opentiny/tiny-engine-i18n-host": ["packages/i18n/src/lib"] diff --git a/packages/build/vite-config/src/vite-plugins/devAliasPlugin.js b/packages/build/vite-config/src/vite-plugins/devAliasPlugin.js index 87ed3c29a..b081a562d 100644 --- a/packages/build/vite-config/src/vite-plugins/devAliasPlugin.js +++ b/packages/build/vite-config/src/vite-plugins/devAliasPlugin.js @@ -53,7 +53,6 @@ const getDevAlias = (useSourceAlias) => { '@opentiny/tiny-engine-theme-light': path.resolve(basePath, 'packages/theme/light/index.less'), '@opentiny/tiny-engine-theme-base': path.resolve(basePath, 'packages/theme/base/src/index.js'), '@opentiny/tiny-engine-svgs': path.resolve(basePath, 'packages/svgs/index.js'), - '@opentiny/tiny-engine-http': path.resolve(basePath, 'packages/http/src/index.js'), '@opentiny/tiny-engine-canvas': path.resolve(basePath, 'packages/canvas/index.js'), '@opentiny/tiny-engine-canvas/render': path.resolve(basePath, 'packages/canvas/render/index.js'), '@opentiny/tiny-engine-utils': path.resolve(basePath, 'packages/utils/src/index.js'), diff --git a/packages/canvas/DesignCanvas/src/DesignCanvas.vue b/packages/canvas/DesignCanvas/src/DesignCanvas.vue index 65727d0f5..2633d88ce 100644 --- a/packages/canvas/DesignCanvas/src/DesignCanvas.vue +++ b/packages/canvas/DesignCanvas/src/DesignCanvas.vue @@ -28,9 +28,10 @@ import { useModal, getMergeRegistry, getMergeMeta, - getOptions + getOptions, + getMetaApi, + META_SERVICE } from '@opentiny/tiny-engine-meta-register' -import { useHttp } from '@opentiny/tiny-engine-http' import { constants } from '@opentiny/tiny-engine-utils' import * as ast from '@opentiny/tiny-engine-common/js/ast' import { initCanvas } from '../../init-canvas/init-canvas' @@ -181,7 +182,7 @@ export default { getMaterial: useMaterial().getMaterial, addHistory: useHistory().addHistory, registerBlock: useMaterial().registerBlock, - request: useHttp(), + request: getMetaApi(META_SERVICE.Http).getHttp(), ast }, CanvasLayout, diff --git a/packages/canvas/package.json b/packages/canvas/package.json index 148eb5bcb..ffc2a6173 100644 --- a/packages/canvas/package.json +++ b/packages/canvas/package.json @@ -38,7 +38,6 @@ "@babel/core": "7.18.13", "@opentiny/tiny-engine-builtin-component": "workspace:*", "@opentiny/tiny-engine-common": "workspace:*", - "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/tiny-engine-i18n-host": "workspace:*", "@opentiny/tiny-engine-meta-register": "workspace:*", "@opentiny/tiny-engine-utils": "workspace:*", diff --git a/packages/common/composable/defaultGlobalService.js b/packages/common/composable/defaultGlobalService.js index f62f05635..edb09983c 100644 --- a/packages/common/composable/defaultGlobalService.js +++ b/packages/common/composable/defaultGlobalService.js @@ -1,5 +1,4 @@ -import { useHttp } from '@opentiny/tiny-engine-http' -import { useMessage, useModal, defineService, META_SERVICE } from '@opentiny/tiny-engine-meta-register' +import { useMessage, useModal, defineService, getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register' import { watch } from 'vue' const getBaseInfo = () => { @@ -43,7 +42,7 @@ const initialState = { const getUserInfo = () => { // 获取登录用户信息 - return useHttp() + return getMetaApi(META_SERVICE.Http) .get('/platform-center/api/user/me') .catch((error) => { useModal().message({ message: error.message, status: 'error' }) @@ -51,10 +50,10 @@ const getUserInfo = () => { } // 获取当前应用的信息 -const fetchAppInfo = (appId) => useHttp().get(`/app-center/api/apps/detail/${appId}`) +const fetchAppInfo = (appId) => getMetaApi(META_SERVICE.Http).get(`/app-center/api/apps/detail/${appId}`) // 获取应用列表 -const fetchAppList = (platformId) => useHttp().get(`/app-center/api/apps/list/${platformId}`) +const fetchAppList = (platformId) => getMetaApi(META_SERVICE.Http).get(`/app-center/api/apps/list/${platformId}`) const { subscribe, publish } = useMessage() diff --git a/packages/common/composable/http/index.js b/packages/common/composable/http/index.js new file mode 100644 index 000000000..a87000970 --- /dev/null +++ b/packages/common/composable/http/index.js @@ -0,0 +1,65 @@ +import { defineService, META_SERVICE } from '@opentiny/tiny-engine-meta-register' +import axios from 'axios' + +let http = null + +const createInterceptorHandler = + (http) => + ({ data, type }) => { + if (typeof data === 'function') { + http.interceptors[type].use(data) + + return + } + + if (Array.isArray(data)) { + data.forEach((item) => { + if (!item) return + + if (Array.isArray(item)) { + http.interceptors[type].use(...item) + + return + } + + if (typeof item === 'function') { + http.interceptors[type].use(item) + } + }) + } + } + +export default defineService({ + id: META_SERVICE.Http, + type: 'MetaService', + options: { + axiosConfig: { + // axios 配置 + baseURL: '', + withCredentials: false, // 跨域请求时是否需要使用凭证 + headers: {} // 请求头 + }, + interceptors: { + // 拦截器 + request: [], // 支持配置多个请求拦截器,先注册后执行 + response: [] // 支持配置多个响应拦截器,先注册先执行 + } + }, + init: ({ options = {} }) => { + const { axiosConfig = {}, interceptors = {} } = options + const { request = [], response = [] } = interceptors + + http = axios.create(axiosConfig) + const addInterceptors = createInterceptorHandler(http) + addInterceptors({ data: request, type: 'request' }) + addInterceptors({ data: response, type: 'response' }) + }, + apis: () => ({ + getHttp: () => http, + get: (...args) => http?.get(...args), + post: (...args) => http?.post(...args), + request: (...args) => http?.request(...args), + put: (...args) => http?.put(...args), + delete: (...args) => http?.delete(...args) + }) +}) diff --git a/packages/common/composable/index.js b/packages/common/composable/index.js index 7abca1078..11be93bbe 100644 --- a/packages/common/composable/index.js +++ b/packages/common/composable/index.js @@ -1,2 +1,3 @@ export { GenerateCodeService } from './generateCode' export { default as GlobalService } from './defaultGlobalService' +export { default as HttpService } from './http' diff --git a/packages/common/js/http.js b/packages/common/js/http.js index d6b51c2ba..5d31972e1 100644 --- a/packages/common/js/http.js +++ b/packages/common/js/http.js @@ -10,12 +10,10 @@ * */ -import { useHttp } from '@opentiny/tiny-engine-http' import { isVsCodeEnv } from './environments' import { generateRouter, generatePage } from './vscodeGenerateFile' import { usePage, useCanvas, useNotify } from '@opentiny/tiny-engine-meta-register' - -const http = useHttp() +import { getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register' /** * 异常情况埋点上传 @@ -27,7 +25,9 @@ export const requestEvent = (url, params) => { return } - return http.post(url, params).catch(() => {}) + return getMetaApi(META_SERVICE.Http) + .post(url, params) + .catch(() => {}) } /** @@ -38,7 +38,7 @@ export const requestEvent = (url, params) => { * */ export const handlePageUpdate = (pageId, params, routerChange) => { - return http + return getMetaApi(META_SERVICE.Http) .post(`/app-center/api/pages/update/${pageId}`, params) .then((res) => { const { pageSettingState } = usePage() diff --git a/packages/common/js/vscodeGenerateFile.js b/packages/common/js/vscodeGenerateFile.js index 35ea13689..357f6effc 100644 --- a/packages/common/js/vscodeGenerateFile.js +++ b/packages/common/js/vscodeGenerateFile.js @@ -10,9 +10,7 @@ * */ -import { useHttp } from '@opentiny/tiny-engine-http' - -const http = useHttp() +import { getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register' /** * vscode生成路由文件 @@ -26,7 +24,7 @@ const http = useHttp() * @returns { string } */ -const generateRouter = (params) => http.post('/generate/api/generateRouter', params) +const generateRouter = (params) => getMetaApi(META_SERVICE.Http).post('/generate/api/generateRouter', params) /** * vscode生成本地国际化词条 @@ -43,7 +41,7 @@ const generateRouter = (params) => http.post('/generate/api/generateRouter', par * @returns { string } */ -const generateI18n = (params) => http.post('/generate/api/generateI18n', params) +const generateI18n = (params) => getMetaApi(META_SERVICE.Http).post('/generate/api/generateI18n', params) /** * vscode生成区块 @@ -57,7 +55,7 @@ const generateI18n = (params) => http.post('/generate/api/generateI18n', params) * @returns { string } */ -const generateBlock = (params) => http.post('/generate/api/generateBlock', params) +const generateBlock = (params) => getMetaApi(META_SERVICE.Http).post('/generate/api/generateBlock', params) /** * vscode生成页面 @@ -70,7 +68,7 @@ const generateBlock = (params) => http.post('/generate/api/generateBlock', param } * @returns { string } */ -const generatePage = (params) => http.post('/generate/api/generatePage', params) +const generatePage = (params) => getMetaApi(META_SERVICE.Http).post('/generate/api/generatePage', params) /** * vscode生成数据源 @@ -86,7 +84,7 @@ const generatePage = (params) => http.post('/generate/api/generatePage', params) } * @returns { string } */ -const generateDataSource = (params) => http.post('/generate/api/generateDataSource', params) +const generateDataSource = (params) => getMetaApi(META_SERVICE.Http).post('/generate/api/generateDataSource', params) /** * vscode生成桥接源 @@ -98,7 +96,7 @@ const generateDataSource = (params) => http.post('/generate/api/generateDataSour } * @returns { string } */ -const generateBridge = (params) => http.post('/generate/api/generateBridge', params) +const generateBridge = (params) => getMetaApi(META_SERVICE.Http).post('/generate/api/generateBridge', params) /** * vscode生成工具类 @@ -110,6 +108,6 @@ const generateBridge = (params) => http.post('/generate/api/generateBridge', par } * @returns { string } */ -const generateUtil = (params) => http.post('/generate/api/generateUtil', params) +const generateUtil = (params) => getMetaApi(META_SERVICE.Http).post('/generate/api/generateUtil', params) export { generateRouter, generateI18n, generateBlock, generatePage, generateDataSource, generateBridge, generateUtil } diff --git a/packages/common/package.json b/packages/common/package.json index 7d53c6e5d..37d321568 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -34,7 +34,6 @@ "@babel/parser": "~7.23.2", "@babel/traverse": "~7.23.2", "@opentiny/tiny-engine-dsl-vue": "workspace:*", - "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/tiny-engine-i18n-host": "workspace:*", "@opentiny/tiny-engine-meta-register": "workspace:*", "@opentiny/tiny-engine-utils": "workspace:*", @@ -43,6 +42,7 @@ "eslint-linter-browserify": "8.57.0", "monaco-editor": "0.33.0", "prettier": "2.7.1", + "axios": "~0.28.0", "vue-draggable-next": "2.1.0" }, "devDependencies": { diff --git a/packages/configurator/package.json b/packages/configurator/package.json index c44bcc9f3..1aaec0651 100644 --- a/packages/configurator/package.json +++ b/packages/configurator/package.json @@ -28,7 +28,6 @@ }, "dependencies": { "@opentiny/tiny-engine-common": "workspace:*", - "@opentiny/tiny-engine-http": "workspace:*", "@opentiny/tiny-engine-meta-register": "workspace:*", "@opentiny/tiny-engine-utils": "workspace:*", "@vue/shared": "^3.3.4", diff --git a/packages/configurator/src/collection-configurator/CollectionConfigurator.vue b/packages/configurator/src/collection-configurator/CollectionConfigurator.vue index 9b4448bbf..24273149c 100644 --- a/packages/configurator/src/collection-configurator/CollectionConfigurator.vue +++ b/packages/configurator/src/collection-configurator/CollectionConfigurator.vue @@ -11,7 +11,6 @@