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 } ]