2021-06-11 測試版
npm install
npm run serve
npm run serve-dev
npm run serve-pro
npm run build
npm run build-dev
npm run build-pro
npm run lint
npm install -save vue-i18n
npm install -save bootstrap jquery popper.js
IconsVue-Awesome for Icon
npm install -save vue-awesome
npm i -D @vue/composition-api
npm install echarts vue-echarts
- App.vue
- 透過URL做登入行為(token) http://127.0.0.1:8080/?token=123465
- 把幾一些不常更新的資料回存到Vuex
- Index.vue
- 取得不需要經常性更新資料(會員資料,二元商品資料)
- 取得需要連動資料(投注規則)
- 監聽選擇
連動資料
更新
- components
- 各元件自己處理
- 網站配置文件增加(路由404問題)
#vue-router Nginx配置
location / {
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}