感觉代码没有正经写多久,大部分的时间都在了折腾编辑器的路上马不停蹄。哈哈,特步,永不止步。
生成一个项目 iview-cli
- 项目名字
- axios (ajax,基本都需要)
一个有意思的方式,有待尝试。前端+docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios'; | |
import Vue from 'vue'; | |
import store from '@/store'; | |
// import { Message } from 'iview'; | |
// 请求时拦截 | |
axios.interceptors.request.use(config => config, error => Promise.reject(error)); | |
// 请求完成后拦截 | |
axios.interceptors.response.use( | |
response => response, | |
(error) => { |
<DescriptionList title="运营商" class="mb20">
<Description :col="2">
<FormItem label="运营商:">{{supportName}}</FormItem>
</Description>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export { default as NavBar } from './NavBar'; | |
export { default as SideBar } from './SideBar'; | |
export { default as AppMain } from './AppMain'; |