Skip to content

a35506322/vite-vue-template

Repository files navigation

vite-vue-template

This template should help get you started developing with Vue 3 in Vite.

Recommended IDE Setup

VSCode + Volar (and disable Vetur) + TypeScript Vue Plugin (Volar).

Customize configuration

See Vite Configuration Reference.

Project Setup

npm install

Compile and Hot-Reload for Development

npm run dev

Compile and Minify for Production

npm run build

Lint with ESLint

npm run lint

底下為範本程式碼介紹

axios 範本串接

流程步驟

  • 首先先在 Post Man 建立 MockServer 精選好文
  • 安裝套件 npm install --save axios vue-axios 在 main.js 註冊並引用
  • 可以參考整合 axios 此篇利用攔截器,攔截錯誤代碼並統整操作
  • 參考 AxiosTemplateView.vue 範本程式碼

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published