First Run vue project

First run project need to consider how to perform, I use the editor is pycharm, it can be executed directly in pycharm project, the first is to use the command line, and the second is relatively simple, the actuator configured to perform. Following is a brief talk about the configuration of the actuator.

The first step click the Run button configuration, click Configure to enter the configuration page, click on the Add button to add npm, click OK.

 

 

 

 

 

The second step to configure actuators. Name can be configured to name you need, select package.json package.json path project, Scripts choice serve, configured, click Apply to apply, and finally click OK.

 

Configured.

 

execution succeed.

 

 

 

 

 

 The following configuration element-ui.

First install element-ui and axios. Note that this command must have --save , otherwise cnpm method of installing the package can not be saved to package.json project.

Command line: CNPM --save -s Element-ui

Command line: CNPM --save -s Axios

Following the introduction element.

Open element-ui document to copy the code main.js file. URL : https://element.eleme.cn/#/zh-CN/component/quickstart

Copy the following code to main.js:

 

 

 

 

The implementation of the project again, successfully.

 

Guess you like

Origin www.cnblogs.com/wzjbg/p/12459772.html
Recommended