vue 笔记
小于 1 分钟
nginx反向代理配置
location / {
try_files $uri $uri/ /index.html;
}
location /admin {
proxy_pass http://xuekatu.cc;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
vue3初始化
yarn create vite my-vue-app --template vue
yarn add -D vuetify
yarn add @mdi/font
// Vuetify
import 'vuetify/styles'
import { createVuetify } from 'vuetify'
import * as components from 'vuetify/components'
import * as directives from 'vuetify/directives'
const vuetify = createVuetify({
components,
directives,
})
createApp(App).use(vuetify).mount('#app')