前端环境配置及 README.md 说明文档
parent
57ab4a27e0
commit
3b999faf89
|
@ -1,6 +1,6 @@
|
||||||
# Django-Vue-Admin
|
# Django-Vue-Admin
|
||||||
|
|
||||||
[](https://gitee.com/liqianglog/django-vue-admin/blob/master/LICENSE) [](https://pypi.org/project/django-simpleui/#history) [](https://python.org/) [](https://pypi.org/project/django-simpleui/)
|
[](https://gitee.com/liqianglog/django-vue-admin/blob/master/LICENSE) [](https://pypi.org/project/django-simpleui/#history) [](https://python.org/) [](https://nodejs.org/zh-cn/download/releases/)[](https://pypi.org/project/django-simpleui/)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,5 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
||||||
# 前端端口
|
# 前端端口
|
||||||
PORT=8080
|
PORT=8080
|
||||||
|
|
||||||
# 首页标题
|
# 系统名称
|
||||||
TITLE = 'dvAdmin管理系统'
|
VUE_APP_TITLE = 'dvAdmin管理系统'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="login">
|
<div class="login">
|
||||||
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
||||||
<h3 class="title">若依后台管理系统</h3>
|
<h3 class="title">{{ title }}</h3>
|
||||||
<el-form-item prop="username">
|
<el-form-item prop="username">
|
||||||
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
<el-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
||||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
||||||
|
@ -62,6 +62,7 @@ export default {
|
||||||
name: "Login",
|
name: "Login",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
title: process.env.VUE_APP_TITLE || 'dvAdmin管理系统',
|
||||||
codeUrl: "",
|
codeUrl: "",
|
||||||
cookiePassword: "",
|
cookiePassword: "",
|
||||||
loginForm: {
|
loginForm: {
|
||||||
|
@ -99,7 +100,7 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
getCode() {
|
getCode() {
|
||||||
getCodeImg().then(res => {
|
getCodeImg().then(res => {
|
||||||
this.codeUrl = 'http://127.0.0.1:8000'+res.data.image_url;
|
this.codeUrl = process.env.VUE_APP_BASE_API + res.data.image_url;
|
||||||
this.loginForm.uuid = res.data.key;
|
this.loginForm.uuid = res.data.key;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,8 +6,7 @@ function resolve(dir) {
|
||||||
return path.join(__dirname, dir)
|
return path.join(__dirname, dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
const name = defaultSettings.title || 'dvAdmin管理系统' // 标题
|
const name = defaultSettings.title || process.env.VUE_APP_TITLE || 'dvAdmin管理系统' // 标题
|
||||||
|
|
||||||
const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
const port = process.env.port || process.env.npm_config_port || 80 // 端口
|
||||||
|
|
||||||
// vue.config.js 配置说明
|
// vue.config.js 配置说明
|
||||||
|
|
Loading…
Reference in New Issue