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