🐞 fix(录像): 修复上传录像错误

This commit is contained in:
luying
2023-04-19 09:40:53 +08:00
parent cb65101908
commit 17227de777
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg'; import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
const path = require('path'); const path = require('path');
import { sshHost } from './sshHost';
export default (appInfo: EggAppInfo) => { export default (appInfo: EggAppInfo) => {
const config = {} as PowerPartial<EggAppConfig>; const config = {} as PowerPartial<EggAppConfig>;
@@ -79,6 +80,7 @@ export default (appInfo: EggAppInfo) => {
const bizConfig = { const bizConfig = {
sourceUrl: `https://github.com/eggjs/examples/tree/master/${appInfo.name}`, sourceUrl: `https://github.com/eggjs/examples/tree/master/${appInfo.name}`,
}; };
config.sshHost = sshHost;
// the return config will combines to EggAppConfig // the return config will combines to EggAppConfig
return { return {

View File

@@ -1,6 +1,5 @@
import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg'; import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg';
import defaultConfig from './config.default'; import defaultConfig from './config.default';
import { sshHost } from './sshHost';
export default (appInfo: EggAppInfo) => { export default (appInfo: EggAppInfo) => {
const config = {} as PowerPartial<EggAppConfig>; const config = {} as PowerPartial<EggAppConfig>;
@@ -19,7 +18,6 @@ export default (appInfo: EggAppInfo) => {
}; };
config.decodeParm = true; config.decodeParm = true;
config.sshHost = sshHost;
// the return config will combines to EggAppConfig // the return config will combines to EggAppConfig
return { return {