message组件 使用frontend-base的
This commit is contained in:
parent
0cc9ecd725
commit
0f7c5b3aef
|
|
@ -118,7 +118,7 @@ async function create(dirName, cmd) {
|
|||
const { name, version, title, description } = await inquirer_1.default.prompt(prompt);
|
||||
// 获取package.json内容
|
||||
const packageJson = (0, template_1.packageJsonContent)({
|
||||
name: DEFAULT_PROJECT_NAME,
|
||||
name: DEFAULT_PROJECT_NAME, // 后面再统一rename
|
||||
version,
|
||||
description,
|
||||
cliName: config_1.CLI_NAME,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ async function startup(path, contextBuilder, connector, omitWatchers, omitTimers
|
|||
path: connector.getSubscribeRouter(),
|
||||
};
|
||||
socketOption.cors = {
|
||||
origin: '*',
|
||||
origin: '*', // 允许跨域访问
|
||||
allowedHeaders: ["oak-cxt"],
|
||||
};
|
||||
const io = new socket_io_1.Server(httpServer, socketOption);
|
||||
|
|
|
|||
|
|
@ -582,7 +582,7 @@ function appJsonContentWithWeChatMp(isDev) {
|
|||
"enablePullDownRefresh": true
|
||||
},
|
||||
"usingComponents": {
|
||||
"oak-message": "@oak-general-business/components/message/index",
|
||||
"oak-message": "@oak-frontend-base/components/message/index",
|
||||
"oak-debugPanel": "@oak-general-business/components/func/debugPanel/index"
|
||||
},
|
||||
"style": "v2",
|
||||
|
|
|
|||
|
|
@ -596,7 +596,7 @@ export function appJsonContentWithWeChatMp(isDev: boolean) {
|
|||
"enablePullDownRefresh": true
|
||||
},
|
||||
"usingComponents": {
|
||||
"oak-message": "@oak-general-business/components/message/index",
|
||||
"oak-message": "@oak-frontend-base/components/message/index",
|
||||
"oak-debugPanel": "@oak-general-business/components/func/debugPanel/index"
|
||||
},
|
||||
"style": "v2",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React, { lazy } from 'react';
|
||||
const Message = lazy(() => import('oak-general-business/es/components/message'));
|
||||
const Message = lazy(() => import('oak-frontend-base/es/components/message'));
|
||||
const DebugPanel = lazy(
|
||||
() => import('oak-general-business/es/components/func/debugPanel')
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue