From 683307b2191ce7c669d68c9f0b868305208d3444 Mon Sep 17 00:00:00 2001 From: tinyu Date: Tue, 26 Mar 2024 14:14:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=90=AD=E5=BB=BA=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++++++ vue.config.js | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/README.md b/README.md index 90ebd3e..4db9429 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,11 @@ yarn lint ### Customize configuration See [Configuration Reference](https://cli.vuejs.org/config/). + +### 命令 +```SH +# 杀死所有node进程 +pkill node +# 查看node进程列表 +ps -ef|grep node +``` \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 523a634..e9f038d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,4 +1,10 @@ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, + devServer: { + host: 'localhost', + // port: 8089, + historyApiFallback: true, + allowedHosts: "all" + } }) -- GitLab