From cd839dc6b36524d70c0466b220347f920315385e Mon Sep 17 00:00:00 2001 From: sunnie <406803045@qq.com> Date: Thu, 28 May 2020 16:24:37 +0800 Subject: [PATCH] docs --- .gitignore | 2 +- public/favicon.ico | Bin 4286 -> 4286 bytes src/api/user.js | 2 +- src/components/TabBar.vue | 10 +++------- src/config/env.development.js | 2 +- src/main.js | 2 +- src/plugins/vant.js | 2 +- src/router/index.js | 2 +- src/store/modules/app.js | 2 +- src/utils/request.js | 4 ++-- 10 files changed, 12 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 26dd1b5..fdc3bc3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ .DS_Store node_modules /dist - +/docs # local env files .env.local .env.*.local diff --git a/public/favicon.ico b/public/favicon.ico index df36fcfb72584e00488330b560ebcf34a41c64c2..29f86064c1c3ed58c1f7bd148d6b3f8e2b866f68 100644 GIT binary patch literal 4286 zcmd6nYitx%7=}+TbVEybXLe_|EhSb6w`w4Y5o{u~{PBmuq*uzNAP`G$AS9Xyaw$fm zl5h(aA(To%QJ~y1F2nZq(0)nwI&;Zf4^s-&r&TMyQKHsz5ZD;6iX$3E{dG)|hU(JO01l>REw-q3T(Spq`V$ z)pNFgH7xgmTyPQoogf{I1knK3q<<_=V1Cs10Qr$o>%d8{31oL2wGWr~*&~&McE)*J z2j=$OAL?ch@EhwHsnh+X{W`o=U^RFV2p}9hQWTwkT`0e|Mk3{qo#5hVpb1<66`)A@ zLQ0l*2`0HhWb!BCp!4`Mfk*JmVx+AO3ff=9z)TW!88*&|Y+Sa61H{ULQcBi|_R*mPc7Pt-1;Q>3zl_CA^ z)-qwPQW^SLgp0f5z*f)!s0YhELXMwaiD?z-5*q?<5|{_Jff{fJ|2svl#NI!!|9l@5 z^xfYntfo_TRyifQ&laff&3GMz?)n`>bufmF|Be zsvSE;jqiIP3-`Nr!2fd`+chc5;OF!CS&Hfg!Q4C(zit@IPn`J<=E`>raTYobHy7IJ zUXi3VzHU>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qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S diff --git a/src/api/user.js b/src/api/user.js index 246d61d..13e6050 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -1,7 +1,7 @@ import qs from 'qs' // axios import request from '@/utils/request' -//user api +// user api // 登录 export function login(params) { diff --git a/src/components/TabBar.vue b/src/components/TabBar.vue index ac08972..b04388c 100644 --- a/src/components/TabBar.vue +++ b/src/components/TabBar.vue @@ -7,16 +7,14 @@ 关于我 - - - diff --git a/src/config/env.development.js b/src/config/env.development.js index 13c2f3c..1295697 100644 --- a/src/config/env.development.js +++ b/src/config/env.development.js @@ -5,5 +5,5 @@ module.exports = { baseApi: 'https://test.xxx.com/api', // 本地api请求地址,注意:如果你使用了代理,请设置成'/' APPID: 'xxx', APPSECRET: 'xxx', - $cdn:'https://imgs.solui.cn' + $cdn: 'https://imgs.solui.cn' } diff --git a/src/main.js b/src/main.js index 36cfc46..c68384d 100644 --- a/src/main.js +++ b/src/main.js @@ -11,7 +11,7 @@ import store from './store' // 引入全局样式 import '@/assets/css/index.scss' // 设置 js中可以访问 $cdn -import {$cdn} from '@/config' +import { $cdn } from '@/config' Vue.prototype.$cdn = $cdn // 全局引入按需引入UI库 vant diff --git a/src/plugins/vant.js b/src/plugins/vant.js index fe437b3..0723dfa 100644 --- a/src/plugins/vant.js +++ b/src/plugins/vant.js @@ -1,6 +1,6 @@ // 按需全局引入 vant组件 import Vue from 'vue' -import {Button, List, Cell, Tabbar, TabbarItem} from 'vant' +import { Button, List, Cell, Tabbar, TabbarItem } from 'vant' Vue.use(Button) Vue.use(Cell) Vue.use(List) diff --git a/src/router/index.js b/src/router/index.js index 35d0fa0..aa5a9f7 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -27,7 +27,7 @@ const createRouter = () => new Router({ // mode: 'history', // 如果你是 history模式 需要配置vue.config.js publicPath // base: '/app/', - scrollBehavior: () => ({y: 0}), + scrollBehavior: () => ({ y: 0 }), routes: router }) diff --git a/src/store/modules/app.js b/src/store/modules/app.js index 9f1a9be..7f81758 100644 --- a/src/store/modules/app.js +++ b/src/store/modules/app.js @@ -8,7 +8,7 @@ const mutations = { } const actions = { // 设置name - setUserName({commit}, name) { + setUserName({ commit }, name) { commit('SET_USER_NAME', name) } } diff --git a/src/utils/request.js b/src/utils/request.js index 992261a..6788f91 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -1,8 +1,8 @@ import axios from 'axios' import store from '@/store' -import {Toast} from 'vant' +import { Toast } from 'vant' // 根据环境不同引入不同api地址 -import {baseApi} from '@/config' +import { baseApi } from '@/config' // create an axios instance const service = axios.create({ baseURL: baseApi, // url = base api url + request url