vue2.0 + elementUI background management platform visit: https://suweiteng.github.io/vue2-management-platform
I recently learned how to use vue2.0 and elementUI, and with the help of various documents, I tried to write a backend management platform. The current data is simulated using mock.js, which is relatively simple. It will be refined and login and other functions will be added in the future.
更新:vue已升级至2.5.X,elementUI已升级至2.2,其他相关依赖也已升级,
具体请参考https://github.com/suweiteng/vue2-management-platform/blob/master/package.json
In order to facilitate the direct online preview of the project on github pages, some configurations are different from the local running configuration. There are currently 2 places, which are detailed in the code. If you encounter problems, you can modify them yourself:
One is assetsPublicPath: '/vue2-management-platform/'
in config/index.js
Local packaging can be changed to assetsPublicPath: '/'
The second is to write window.UEDITOR_HOME_URL = "/static/UE/"
in the configuration static/UE/ueditor.config.js
of the UE editor for local development.
July 11, 2017: Integrated Ueditor rich text editor as a public component.
July 13, 2017: The editor supports multiple calls to the same page.
January 23, 2018: The editor supports a small function: obtaining plain text (solve the problem of 40L comments in the blog).
Tutorial: http://www.cnblogs.com/dmcl/p/7152711.html
The effect is as follows: Experience this function online: https://suweiteng.github.io/vue2-management-platform/#/editor
February 25, 2018: vue has been upgraded to 2.5.X, elementUI has been upgraded to 2.2, and other related dependencies have also been upgraded. (beta2.0)
The effect is as follows:
February 26, 2018: Added packaging analysis webpack-bundle-analyzer; optimized export function. (beta2.1)
April 2, 2018: Fixed the pop-up window problem caused by upgrading ElementUI to 2.x: issue 10
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
Please click star in the upper right corner, thank you