摘要:
1、npm install axios 引入axios 2、src下新建http.ts,可根据项目实际情况配置 import axios from 'axios'; const http = axios.create({ baseURL: 'http://localhost:8080', // 基础 阅读全文
posted @ 2024-12-25 17:43
God、夜
阅读(17)
评论(0)
推荐(0)
摘要:
1、npm install vue-router 引入vue-router main.ts增加配置 import router from './routes' createApp(App).use(router) 2、src下新建目录routes,新建index.ts // index.ts imp 阅读全文
posted @ 2024-12-25 16:35
God、夜
阅读(12)
评论(0)
推荐(0)

浙公网安备 33010602011771号