![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
haodayzsm
这个作者很懒,什么都没留下…
展开
-
vue脚手架搭建项目
1、vue init webpack demo(项目名小写) Project name # 项目名:默认为上一步"webpack demo"中的demo Project description # 项目介绍:默认 A Vue.js project Author # 作者名 Vue build(Use arrow keys) Runtime + Compiler:recommended for most users # 运行加编译 Runtime-only:about 6KB lighter min原创 2021-04-17 19:55:07 · 93 阅读 · 0 评论 -
vue-admin-template打包部署及跳过登录验证
1、修改vue.config.js 将publicPath的值改为’./’(设置打包后的静态资源为相对路径,避免加载不到css、js导致页面白屏) outputDir:打包后的文件夹名 assetsDir:打包后的静态资源文件夹名 2、三个文件中的VUE_APP_BASE_API改为自己的请求地址 3、修改登录请求接口 4、注释掉src/main.js中此段代码 不使用mock数据,使用自己的接口数据 5、修改util/request.js中的code判断,改为自己后端返回的code 6、如需跳过原创 2021-04-16 11:54:13 · 2344 阅读 · 3 评论 -
application/x-www-form-urlencoded请求参数格式
const params = new URLSearchParams() params.append('start_date', this.listQuery.start_date)原创 2021-04-16 11:50:17 · 992 阅读 · 0 评论 -
vue-element-template登录流程
登录流程 1、src/view/login/index.vue handleLogin() { this.$refs.loginForm.validate(valid => { if (valid) { this.loading = true this.$store.dispatch('user/login', this.loginForm).then(() => { this.$router.push({ path: this.redirect '' '/' })原创 2021-04-16 11:48:03 · 644 阅读 · 0 评论 -
windows下使用.msi进行vue安装
nodejs下载 Node.js 安装包及源码下载地址为:https://nodejs.org/en/download/ 你可以根据不同平台系统选择你需要的 Node.js 安装包。 此文章介绍windows环境下的安装: 一直执行next到安装完成: Node.js runtime 表示运行环境 npm package manager表示npm包管理器 online documentation shortcuts 在线文档快捷方式 Add to PATH添加到环境变量 在键盘按下【win+R】键,输原创 2020-06-25 17:38:33 · 202 阅读 · 0 评论