no message
This commit is contained in:
parent
56f09727f7
commit
c3c6f85c5e
@ -4,15 +4,11 @@ const APP_CONFIG = {
|
|||||||
//标题
|
//标题
|
||||||
APP_NAME: "寄托天下",
|
APP_NAME: "寄托天下",
|
||||||
//主题设置
|
//主题设置
|
||||||
THEMESETTING: false,
|
THEMESETTING: true,
|
||||||
// Cookie name
|
// Cookie name
|
||||||
SESSIONNAME: 'miucms_session',
|
SESSIONNAME: 'miucms_session',
|
||||||
// 主题页头
|
// 网站LOGO, 正式形
|
||||||
// THEMEHEADER: false,
|
APP_LOGO: 'https://oss.gter.net/avatar/97KwEWEGZeIREizSqgKwXgxaF76Z01V_vGFhY2E~/small?random=1692091829',
|
||||||
//布局 默认:default | 通栏:header | 经典:menu | 功能坞:dock
|
//接口地址
|
||||||
// LAYOUT: 'dock',
|
API_URL: 'https://app.gter.net/admin',
|
||||||
//是否开启多标签
|
|
||||||
// LAYOUT_TAGS: false,
|
|
||||||
//接口地址,如遇跨域需使用nginx代理
|
|
||||||
// API_URL: "https://www.fastmock.site/mock/5039c4361c39a7e3252c5b55971f1bd3/api"
|
|
||||||
}
|
}
|
Binary file not shown.
Before Width: | Height: | Size: 145 KiB |
@ -12,7 +12,7 @@ const DEFAULT_CONFIG = {
|
|||||||
CORE_VER: "1.6.9",
|
CORE_VER: "1.6.9",
|
||||||
|
|
||||||
//接口地址
|
//接口地址
|
||||||
API_URL: 'https://app.gter.net/admin',
|
API_URL: '/admin',
|
||||||
|
|
||||||
//请求超时
|
//请求超时
|
||||||
TIMEOUT: 10000,
|
TIMEOUT: 10000,
|
||||||
@ -21,7 +21,7 @@ const DEFAULT_CONFIG = {
|
|||||||
THEMESETTING: true,
|
THEMESETTING: true,
|
||||||
|
|
||||||
// 主题页头
|
// 主题页头
|
||||||
THEMEHEADER: true,
|
THEMEHEADER: false,
|
||||||
|
|
||||||
//TokenName
|
//TokenName
|
||||||
TOKEN_NAME: "authorization",
|
TOKEN_NAME: "authorization",
|
||||||
@ -74,14 +74,8 @@ const DEFAULT_CONFIG = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//合并业务配置
|
|
||||||
import MY_CONFIG from "./myConfig"
|
|
||||||
Object.assign(DEFAULT_CONFIG, MY_CONFIG)
|
|
||||||
|
|
||||||
// 如果生产模式,就合并动态的APP_CONFIG
|
// 如果生产模式,就合并动态的APP_CONFIG
|
||||||
// public/config.js
|
// public/config.js
|
||||||
if(process.env.NODE_ENV === 'production'){
|
Object.assign(DEFAULT_CONFIG, APP_CONFIG)
|
||||||
Object.assign(DEFAULT_CONFIG, APP_CONFIG)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default DEFAULT_CONFIG
|
export default DEFAULT_CONFIG
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
//业务配置
|
|
||||||
//会合并至this.$config
|
|
||||||
//生产模式 public/config.js 同名key会覆盖这里的配置从而实现打包后的热更新
|
|
||||||
//全局可使用 this.$config.MY_KEY 访问
|
|
||||||
|
|
||||||
export default {
|
|
||||||
//是否显示第三方授权登录
|
|
||||||
MY_SHOW_LOGIN_OAUTH: true
|
|
||||||
}
|
|
@ -4,7 +4,7 @@
|
|||||||
<header class="adminui-header" v-show="layoutHeader">
|
<header class="adminui-header" v-show="layoutHeader">
|
||||||
<div class="adminui-header-left">
|
<div class="adminui-header-left">
|
||||||
<div class="logo-bar">
|
<div class="logo-bar">
|
||||||
<img class="logo" src="@/assets/img/logo.png">
|
<img class="logo" :src="appLogo">
|
||||||
<span>{{ $config.APP_NAME }}</span>
|
<span>{{ $config.APP_NAME }}</span>
|
||||||
</div>
|
</div>
|
||||||
<ul v-if="!ismobile" class="nav">
|
<ul v-if="!ismobile" class="nav">
|
||||||
@ -55,7 +55,7 @@
|
|||||||
<header class="adminui-header" v-show="layoutHeader">
|
<header class="adminui-header" v-show="layoutHeader">
|
||||||
<div class="adminui-header-left">
|
<div class="adminui-header-left">
|
||||||
<div class="logo-bar">
|
<div class="logo-bar">
|
||||||
<img class="logo" src="@/assets/img/logo.png">
|
<img class="logo" :src="appLogo">
|
||||||
<span>{{ $config.APP_NAME }}</span>
|
<span>{{ $config.APP_NAME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -97,7 +97,7 @@
|
|||||||
<header class="adminui-header" v-show="layoutHeader">
|
<header class="adminui-header" v-show="layoutHeader">
|
||||||
<div class="adminui-header-left">
|
<div class="adminui-header-left">
|
||||||
<div class="logo-bar">
|
<div class="logo-bar">
|
||||||
<img class="logo" src="@/assets/img/logo.png">
|
<img class="logo" :src="appLogo">
|
||||||
<span>{{ $config.APP_NAME }}</span>
|
<span>{{ $config.APP_NAME }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -132,7 +132,7 @@
|
|||||||
<div v-if="!ismobile" class="aminui-side-split">
|
<div v-if="!ismobile" class="aminui-side-split">
|
||||||
<div class="aminui-side-split-top">
|
<div class="aminui-side-split-top">
|
||||||
<router-link :to="$config.DASHBOARD_URL">
|
<router-link :to="$config.DASHBOARD_URL">
|
||||||
<img class="logo" :title="$config.APP_NAME" src="@/assets/img/logo-r.png">
|
<img class="logo" :title="$config.APP_NAME" :src="appLogo">
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div class="adminui-side-split-scroll">
|
<div class="adminui-side-split-scroll">
|
||||||
@ -197,6 +197,7 @@
|
|||||||
import setting from './components/setting.vue';
|
import setting from './components/setting.vue';
|
||||||
import iframeView from './components/iframeView.vue';
|
import iframeView from './components/iframeView.vue';
|
||||||
import autoExit from './other/autoExit.js';
|
import autoExit from './other/autoExit.js';
|
||||||
|
import logo from '@/assets/img/logo.png';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
@ -216,7 +217,8 @@
|
|||||||
menu: [],
|
menu: [],
|
||||||
nextMenu: [],
|
nextMenu: [],
|
||||||
pmenu: {},
|
pmenu: {},
|
||||||
active: ''
|
active: '',
|
||||||
|
appLogo: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed:{
|
computed:{
|
||||||
@ -237,6 +239,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.appLogo = this.$config.APP_LOGO || logo;
|
||||||
this.onLayoutResize();
|
this.onLayoutResize();
|
||||||
window.addEventListener('resize', this.onLayoutResize);
|
window.addEventListener('resize', this.onLayoutResize);
|
||||||
var menu = this.$router.sc_getMenu();
|
var menu = this.$router.sc_getMenu();
|
||||||
|
Loading…
Reference in New Issue
Block a user