update preview

This commit is contained in:
AceDataCloud committed 2022-04-03 09:13:04 +08:00
1 parent 1eb713aaf4
commit 304201ef80
10 files changed
+83 -17

No files matched your search

+26 -6
View File
@@ -1,11 +1,31 @@
# Vue 3 + Typescript + Vite
# Adademy
This template should help get you started developing with Vue 3 and Typescript in Vite.
## Setup domain
## Recommended IDE Setup
Modify the host file, like `/etc/hosts`, add this line:
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
```
127.0.0.1 academy.local.zhishuyun.com
```
## Type Support For `.vue` Imports in TS
Then save it.
Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
### Generate certs
Run below command to generate certs:
```
yarn run init:https
```
Then install the `.crt` file and trust it.
### Start server
Run below command to start local server:
```
sudo yarn start
```
Then open `https://academy.local.zhishuyun.com` to view the content.