feat(router): disable home page route and add dependencies README

This commit is contained in:
pnoker
2023-06-08 00:17:23 +08:00
parent 5b9e31f9ec
commit f98e7e39cb
2 changed files with 25 additions and 9 deletions
+24
View File
@@ -0,0 +1,24 @@
## 安装 acme.sh
https://get.acme.sh | sh
## DNS-API
> 阿里云控制台中申请子账号 API Token,并配置环境变量如下
```bash
export Ali_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"
export Ali_Secret="jlsdflanljkljlfdsaklkjflsa"
```
## 生成证书
```bash
acme.sh --issue --dns dns_ali -d example.com -d www.example.com
```
## 安装证书
```bash
acme.sh --installcert -d dc3.site --key-file /etc/letsencrypt/live/dc3.site/dc3.site.key --fullchain-file /etc/letsencrypt/live/dc3.site/fullchain.cer --reloadcmd "service nginx force-reload"
```
+1 -9
View File
@@ -19,17 +19,9 @@ import { RouteRecordRaw } from 'vue-router'
const Layout = () => import('@/components/layout/Layout.vue')
const routes: RouteRecordRaw = {
path: '/',
redirect: '/home',
redirect: '/driver',
component: Layout,
children: [
{
name: 'home',
path: '/home',
meta: {
title: '首页',
},
component: () => import('@/views/home/Home.vue'),
},
{
name: 'driver',
path: '/driver',