From 1ab149c3384ff1451d685c9bca13980d41c655e7 Mon Sep 17 00:00:00 2001 From: Hunter <273676636@qq.com> Date: Tue, 17 May 2022 16:55:08 +0800 Subject: [PATCH] optimize --- src/components/Demo.vue | 2 +- src/router/index.js | 4 ---- vite.config.js | 1 - 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/Demo.vue b/src/components/Demo.vue index dbf2300..e8d5d03 100644 --- a/src/components/Demo.vue +++ b/src/components/Demo.vue @@ -11,7 +11,7 @@ export default { }, methods: { handleClick() { - this.$Message.success('Welcome to ViewUIPlus Demo!') + this.$Message.info('Welcome to View UI Plus Demo!') } } } diff --git a/src/router/index.js b/src/router/index.js index 2edde3f..df8879a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -4,10 +4,6 @@ import Home from '@/views/Home.vue' const routes = [ { path: '/', - redirect: '/home' - }, - { - path: '/home', name: 'home', component: Home } diff --git a/vite.config.js b/vite.config.js index a01bb45..81676f1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -58,7 +58,6 @@ const config = ({ mode }) => { }, server: { open: true, - port: 8080, proxy: { '/api': { target: 'http://localhost:8080',