From 5fa21f2f00888cd61f1535c6fdc1d0d211d8df04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Thu, 11 Jun 2020 20:22:13 +0800 Subject: [PATCH] perf: update --- package.json | 3 +-- src/router/index.js | 2 +- vue.config.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 13957a78..c1fe01f5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "author": "Pan ", "license": "MIT", "scripts": { - "dev": "vue-cli-service serve --open", + "dev": "vue-cli-service serve", "build:prod": "vue-cli-service build", "build:stage": "vue-cli-service build --mode staging", "preview": "node build/index.js --preview", @@ -59,7 +59,6 @@ "nprogress": "0.2.0", "path-to-regexp": "2.4.0", "screenfull": "4.2.0", - "showdown": "1.9.1", "sortablejs": "1.8.4", "tui-editor": "1.3.3", "vue": "2.6.10", diff --git a/src/router/index.js b/src/router/index.js index 2e522b2a..fbe8ad25 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -45,7 +45,7 @@ export const constantRoutes = [ hidden: true, children: [ { - path: '/redirect/:path(.*)', + path: '/redirect/:path*', component: () => import('@/views/redirect/index') } ] diff --git a/vue.config.js b/vue.config.js index 5964c834..7b8f3a5d 100644 --- a/vue.config.js +++ b/vue.config.js @@ -31,7 +31,7 @@ module.exports = { productionSourceMap: false, devServer: { port: port, - open: false, + open: true, overlay: { warnings: false, errors: true