remove task

This commit is contained in:
2025-10-28 15:09:45 +08:00
parent 4dbee366c5
commit 6eb6b7ec79
30 changed files with 14 additions and 790 deletions

View File

@@ -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: '*',
}
},
});
});