remove task
This commit is contained in:
@@ -26,11 +26,16 @@ export const app = useContextKey('app', () => {
|
||||
const init = isInit;
|
||||
if (init) {
|
||||
const config = assistantConfig.getConfig();
|
||||
|
||||
if (config?.https?.type !== 'https') {
|
||||
console.log('http模式', 'http');
|
||||
return new App({
|
||||
serverOptions: {
|
||||
path: '/client/router',
|
||||
httpType: 'http',
|
||||
cors: {
|
||||
origin: '*',
|
||||
}
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -41,6 +46,9 @@ export const app = useContextKey('app', () => {
|
||||
httpType: 'https',
|
||||
httpsCert: httpsPem.cert,
|
||||
httpsKey: httpsPem.key,
|
||||
cors: {
|
||||
origin: '*',
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user