From 79dd7667bff1197fc65055603bb5b59e135402e0 Mon Sep 17 00:00:00 2001 From: frankkeres Date: Wed, 2 Apr 2025 19:22:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=89=8D=E7=AB=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.vue | 6 +++--- frontend/src/router/index.js | 25 ++++++++++++------------- 2 files changed, 15 insertions(+), 16 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index f30957c..00fdfe0 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -3,8 +3,8 @@
-

AWS EC2 价格计算器

- +

云服务器价格计算器

+ AWS报价 AWS折扣 @@ -17,7 +17,7 @@ -

AWS EC2 价格计算器 © 2023

+

云服务器价格计算器 © 2023

diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 1d22715..b4ad192 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -1,24 +1,13 @@ import { createRouter, createWebHistory } from 'vue-router' -import PriceCalculator from '../views/PriceCalculator.vue' import PriceComparison from '../views/PriceComparison.vue' import BudgetEstimator from '../views/BudgetEstimator.vue' import InstanceSearch from '../views/InstanceSearch.vue' import AwsSearchDiscount from '../views/AwsSearchDiscount.vue' + const routes = [ { path: '/', - name: 'PriceCalculator', - component: PriceCalculator - }, - { - path: '/compare', - name: 'PriceComparison', - component: PriceComparison - }, - { - path: '/budget', - name: 'BudgetEstimator', - component: BudgetEstimator + redirect: '/awsSearch' }, { path: '/awsSearch', @@ -29,6 +18,16 @@ const routes = [ path: '/awsSearchDiscount', name: 'AwsSearchDiscount', component: AwsSearchDiscount + }, + { + path: '/compare', + name: 'PriceComparison', + component: PriceComparison + }, + { + path: '/budget', + name: 'BudgetEstimator', + component: BudgetEstimator } ]