学习项目-前端-第一课:ElementUI

一、vueadmin-template-master

1、basic operation:

(1)unzip

(2)cnpm install

(3)npm run dev

 

 2、specific operation:

(1)shut down grammatical normative check(ESlint):config-->index.js-->useESlint: true-->useESlint-->false

(2)international configuration:src-->main.js-->'element-ui/lib/locale/lang/en'-->'element-ui/lib/locale/lang/zh-CN'

 (3)dock with easy-mock:

save to parameters:

 (4)add Base URL to vueadmin-template-master-->config-->dev.env.js-->BASE_API

 

(5)add two parameters to easy-mock

 

 

 interface according to vueadmin-template-master-->src-->api-->login.js

 (6)page view setup-->src-->views-->module-->xxx.vue

 (7)modify menu-->src-->router-->index.js

 

posted @ 2020-07-05 20:33  遥~  阅读(186)  评论(0)    收藏  举报