mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
fa6de0ce67
commit
76c7443d07
2 changed files with 10 additions and 2 deletions
|
|
@ -66,7 +66,11 @@ let Element;
|
|||
let Template;
|
||||
|
||||
function getHost() {
|
||||
const {host, origin, protocol} = location;
|
||||
const {
|
||||
host,
|
||||
origin,
|
||||
protocol,
|
||||
} = location;
|
||||
const href = origin || `${protocol}//${host}`;
|
||||
|
||||
return href;
|
||||
|
|
|
|||
|
|
@ -20,7 +20,11 @@ const currentConfig = readjson.sync.try(pathConfig);
|
|||
module.exports = before;
|
||||
|
||||
function before(options, fn = options) {
|
||||
const {config, plugins, modules} = options;
|
||||
const {
|
||||
config,
|
||||
plugins,
|
||||
modules,
|
||||
} = options;
|
||||
|
||||
const app = express();
|
||||
const server = http.createServer(app);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue