前端环境配置及 README.md 说明文档
parent
57ab4a27e0
commit
3b999faf89
|
@ -1,6 +1,6 @@
|
|||
# Django-Vue-Admin
|
||||
|
||||
[![img](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitee.com/liqianglog/django-vue-admin/blob/master/LICENSE) [![img](https://img.shields.io/pypi/v/django-simpleui.svg)](https://pypi.org/project/django-simpleui/#history) [![img](https://img.shields.io/badge/python-%3E=3.6.x-green.svg)](https://python.org/) ![PyPI - Django Version badge](https://img.shields.io/badge/django%20versions-2.2-blue)[![img](https://img.shields.io/pypi/dm/django-simpleui.svg)](https://pypi.org/project/django-simpleui/)
|
||||
[![img](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitee.com/liqianglog/django-vue-admin/blob/master/LICENSE) [![img](https://img.shields.io/pypi/v/django-simpleui.svg)](https://pypi.org/project/django-simpleui/#history) [![img](https://img.shields.io/badge/python-%3E=3.6.x-green.svg)](https://python.org/) ![PyPI - Django Version badge](https://img.shields.io/badge/django%20versions-2.2-blue)[![img](https://img.shields.io/badge/node-%3E%3D%2012.0.0-brightgreen)](https://nodejs.org/zh-cn/download/releases/)[![img](https://img.shields.io/pypi/dm/django-simpleui.svg)](https://pypi.org/project/django-simpleui/)
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -10,5 +10,5 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
|
|||
# 前端端口
|
||||
PORT=8080
|
||||
|
||||
# 首页标题
|
||||
TITLE = 'dvAdmin管理系统'
|
||||
# 系统名称
|
||||
VUE_APP_TITLE = 'dvAdmin管理系统'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="login">
|
||||
<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-input v-model="loginForm.username" type="text" auto-complete="off" placeholder="账号">
|
||||
<svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
||||
|
@ -62,6 +62,7 @@ export default {
|
|||
name: "Login",
|
||||
data() {
|
||||
return {
|
||||
title: process.env.VUE_APP_TITLE || 'dvAdmin管理系统',
|
||||
codeUrl: "",
|
||||
cookiePassword: "",
|
||||
loginForm: {
|
||||
|
@ -99,7 +100,7 @@ export default {
|
|||
methods: {
|
||||
getCode() {
|
||||
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;
|
||||
});
|
||||
},
|
||||
|
|
|
@ -6,8 +6,7 @@ function resolve(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 // 端口
|
||||
|
||||
// vue.config.js 配置说明
|
||||
|
|
Loading…
Reference in New Issue