Browse Source

init

master
han\hanst 1 month ago
parent
commit
8926fbc538
  1. 4
      config/index.js
  2. 2
      index.html
  3. 2
      src/views/common/home.vue
  4. 4
      src/views/main-navbar.vue

4
config/index.js

@ -13,7 +13,7 @@ module.exports = {
// 代理列表, 是否开启代理通过[./dev.env.js]配置 // 代理列表, 是否开启代理通过[./dev.env.js]配置
proxyTable: devEnv.OPEN_PROXY === false ? {} : { proxyTable: devEnv.OPEN_PROXY === false ? {} : {
'/proxyApi': { '/proxyApi': {
target: 'http://127.0.0.1:9090',
target: 'http://127.0.0.1:8089',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
// 把 /proxyApi 替换成 / // 把 /proxyApi 替换成 /
@ -24,7 +24,7 @@ module.exports = {
// Various Dev Server settings // Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST host: 'localhost', // can be overwritten by process.env.HOST
port: 8888, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
port: 8848, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true, autoOpenBrowser: true,
errorOverlay: true, errorOverlay: true,
notifyOnErrors: true, notifyOnErrors: true,

2
index.html

@ -4,7 +4,7 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge"> <meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>博应-MES</title>
<title>冠华-MES</title>
<% if (process.env.NODE_ENV === 'production') { %> <% if (process.env.NODE_ENV === 'production') { %>
<!-- 生产环境 --> <!-- 生产环境 -->
<script>document.write('<script src="./config/index.js?t=' + new Date().getTime() + '"><\/script>');</script> <script>document.write('<script src="./config/index.js?t=' + new Date().getTime() + '"><\/script>');</script>

2
src/views/common/home.vue

@ -1,6 +1,6 @@
<template> <template>
<div class="mod-home"> <div class="mod-home">
<h3>博应</h3>
<h3>冠华</h3>
<ul> <ul>
<li><h3>欢迎:{{userName}}!!!</h3></li> <li><h3>欢迎:{{userName}}!!!</h3></li>
</ul> </ul>

4
src/views/main-navbar.vue

@ -122,7 +122,7 @@ export default {
message: this.$t('language.name'), message: this.$t('language.name'),
languageList: [], languageList: [],
pageLanguage: { pageLanguage: {
XjSysManage: '博应管理系统',
XjSysManage: '冠华MES系统',
abbreviation: '旭捷', abbreviation: '旭捷',
setting: '设置', setting: '设置',
languageSetting: '语言设置', languageSetting: '语言设置',
@ -136,7 +136,7 @@ export default {
pageLanguageList: [ pageLanguageList: [
{ {
functionId: "systemInformation", functionId: "systemInformation",
languageValue: '博应管理系统',
languageValue: '冠华MES系统',
objectId: 'XjSysManage', objectId: 'XjSysManage',
objectType: "label", objectType: "label",
tableId: "systemInformation" tableId: "systemInformation"

Loading…
Cancel
Save