Name Last Update
build Loading commit data...
public Loading commit data...
src Loading commit data...
.browserslistrc Loading commit data...
.env.build Loading commit data...
.env.development Loading commit data...
.env.production Loading commit data...
.env.sandbox Loading commit data...
.eslintrc.js Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
babel.config.js Loading commit data...
git.sh Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
postcss.config.js Loading commit data...
vue.config.js Loading commit data...

vue-cli3-framework

Project setup

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

配置

环境配置

配置说明:
本地环境: .env.development
沙箱环境: .env.sandbox
正式环境: .env.development

配置项说明

# 接口环境
VUE_APP_ENV = 'demo'  # 请求头环境参数:demo/prod,即开发/生产。不填写默认连接prod。 
VUE_APP_MODULE_CODE = ''  # 请求头module code,由后端提供。
VUE_APP_BASE_API = ''  # api请求域名
VUE_APP_RSA_PUBLIC_KEY = '' # 加密公钥
VUE_APP_AES_IV = ''  # 加密偏移量
VUE_APP_TOKEN_KEY = 'kd_template_token' # 埋cookies时,token以该值为key
VUE_APP_IS_POST_ENC = true # 该值为true所有post接口请求加密;为false不加密,但可配置opt.enc=true自定义接口加密