This commit is contained in:
小陌 2023-06-11 23:01:34 +08:00
parent 21f3eba195
commit f66779602b
6 changed files with 22 additions and 20 deletions

View File

@ -4,7 +4,7 @@
<el-drawer ref="mobileNavBox" title="移动端菜单" :size="240" v-model="nav" direction="ltr" :with-header="false" destroy-on-close>
<el-container class="mobile-nav">
<el-header>
<div class="logo-bar"><img class="logo" src="@/assets/img/logo.png"><span>{{ $CONFIG.APP_NAME }}</span></div>
<div class="logo-bar"><img class="logo" src="@/assets/img/logo.png"><span>{{ $config.APP_NAME }}</span></div>
</el-header>
<el-main>
<el-scrollbar>

View File

@ -1,11 +1,11 @@
<template>
<!-- 通栏布局 -->
<template v-if="layout=='header'">
<header class="adminui-header" v-show="$CONFIG.THEMEHEADER">
<header class="adminui-header" v-show="$config.THEMEHEADER">
<div class="adminui-header-left">
<div class="logo-bar">
<img class="logo" src="@/assets/img/logo.png">
<span>{{ $CONFIG.APP_NAME }}</span>
<span>{{ $config.APP_NAME }}</span>
</div>
<ul v-if="!ismobile" class="nav">
<li v-for="item in menu" :key="item" :class="pmenu.path==item.path?'active':''" @click="showMenu(item)">
@ -25,7 +25,7 @@
</div>
<div class="adminui-side-scroll">
<el-scrollbar>
<el-menu :default-active="active" router :collapse="menuIsCollapse" :unique-opened="$CONFIG.MENU_UNIQUE_OPENED">
<el-menu :default-active="active" router :collapse="menuIsCollapse" :unique-opened="$config.MENU_UNIQUE_OPENED">
<NavMenu :navMenus="nextMenu"></NavMenu>
</el-menu>
</el-scrollbar>
@ -52,11 +52,11 @@
<!-- 经典布局 -->
<template v-else-if="layout=='menu'">
<header class="adminui-header" v-show="$CONFIG.THEMEHEADER">
<header class="adminui-header" v-show="$config.THEMEHEADER">
<div class="adminui-header-left">
<div class="logo-bar">
<img class="logo" src="@/assets/img/logo.png">
<span>{{ $CONFIG.APP_NAME }}</span>
<span>{{ $config.APP_NAME }}</span>
</div>
</div>
<div class="adminui-header-right">
@ -67,7 +67,7 @@
<div v-if="!ismobile" :class="menuIsCollapse?'aminui-side isCollapse':'aminui-side'">
<div class="adminui-side-scroll">
<el-scrollbar>
<el-menu :default-active="active" router :collapse="menuIsCollapse" :unique-opened="$CONFIG.MENU_UNIQUE_OPENED">
<el-menu :default-active="active" router :collapse="menuIsCollapse" :unique-opened="$config.MENU_UNIQUE_OPENED">
<NavMenu :navMenus="menu"></NavMenu>
</el-menu>
</el-scrollbar>
@ -94,11 +94,11 @@
<!-- 功能坞布局 -->
<template v-else-if="layout=='dock'">
<header class="adminui-header" v-show="$CONFIG.THEMEHEADER">
<header class="adminui-header" v-show="$config.THEMEHEADER">
<div class="adminui-header-left">
<div class="logo-bar">
<img class="logo" src="@/assets/img/logo.png">
<span>{{ $CONFIG.APP_NAME }}</span>
<span>{{ $config.APP_NAME }}</span>
</div>
</div>
<div class="adminui-header-right">
@ -131,8 +131,8 @@
<section class="aminui-wrapper">
<div v-if="!ismobile" class="aminui-side-split">
<div class="aminui-side-split-top">
<router-link :to="$CONFIG.DASHBOARD_URL">
<img class="logo" :title="$CONFIG.APP_NAME" src="@/assets/img/logo-r.png">
<router-link :to="$config.DASHBOARD_URL">
<img class="logo" :title="$config.APP_NAME" src="@/assets/img/logo-r.png">
</router-link>
</div>
<div class="adminui-side-split-scroll">
@ -153,7 +153,7 @@
</div>
<div class="adminui-side-scroll">
<el-scrollbar>
<el-menu :default-active="active" router :collapse="menuIsCollapse" :unique-opened="$CONFIG.MENU_UNIQUE_OPENED">
<el-menu :default-active="active" router :collapse="menuIsCollapse" :unique-opened="$config.MENU_UNIQUE_OPENED">
<NavMenu :navMenus="nextMenu"></NavMenu>
</el-menu>
</el-scrollbar>
@ -182,7 +182,7 @@
<div class="main-maximize-exit" @click="exitMaximize"><el-icon><el-icon-close /></el-icon></div>
<div class="layout-setting" v-if="$CONFIG.THEMESETTING" @click="openSetting"><el-icon><el-icon-brush-filled /></el-icon></div>
<div class="layout-setting" v-if="$config.THEMESETTING" @click="openSetting"><el-icon><el-icon-brush-filled /></el-icon></div>
<el-drawer title="布局实时演示" v-model="settingDialog" :size="400" append-to-body destroy-on-close>
<setting></setting>
</el-drawer>

View File

@ -36,6 +36,7 @@ import * as scIcons from './assets/icons'
export default {
install(app) {
//挂载全局对象
app.config.globalProperties.$config = config;
app.config.globalProperties.$tool = tool;
@ -75,6 +76,7 @@ export default {
for(let icon in elIcons){
app.component(`ElIcon${icon}`, elIcons[icon])
}
//统一注册sc-icon图标
for(let icon in scIcons){
app.component(`ScIcon${icon}`, scIcons[icon])

View File

@ -2,7 +2,7 @@
<el-card shadow="hover" header="版本信息">
<div style="height: 210px;text-align: center;">
<img src="@/assets/img/ver.svg" style="height:140px"/>
<h2 style="margin-top: 15px;">SCUI {{$CONFIG.CORE_VER}}</h2>
<h2 style="margin-top: 15px;">SCUI {{$config.CORE_VER}}</h2>
<p style="margin-top: 5px;">最新版本 {{ver}}</p>
</div>
<div style="margin-top: 20px;">

View File

@ -3,8 +3,8 @@
<el-header style="height:50px;">
<div class="common-header-left">
<div class="common-header-logo">
<img :alt="$CONFIG.APP_NAME" src="@/assets/img/logo.png">
<label>{{$CONFIG.APP_NAME}}</label>
<img :alt="$config.APP_NAME" src="@/assets/img/logo.png">
<label>{{$config.APP_NAME}}</label>
</div>
<div class="common-header-title">{{title}}</div>
</div>

View File

@ -8,7 +8,7 @@
</div>
<div class="login_adv__mask"></div>
<div class="login_adv__bottom">
© {{$CONFIG.APP_NAME}} {{$CONFIG.APP_VER}}
© {{$config.APP_NAME}} {{$config.APP_VER}}
</div>
</div>
<div class="login_main">
@ -28,8 +28,8 @@
<div class="login-form">
<div class="login-header">
<div class="logo">
<img :alt="$CONFIG.APP_NAME" src="@/assets/img/logo.png">
<label>{{$CONFIG.APP_NAME}}</label>
<img :alt="$config.APP_NAME" src="@/assets/img/logo.png">
<label>{{$config.APP_NAME}}</label>
</div>
</div>
<el-tabs>
@ -40,7 +40,7 @@
<phone-form></phone-form>
</el-tab-pane>
</el-tabs>
<template v-if="$CONFIG.MY_SHOW_LOGIN_OAUTH">
<template v-if="$config.MY_SHOW_LOGIN_OAUTH">
<el-divider>{{ $t('login.signInOther') }}</el-divider>
<div class="login-oauth">
<el-button type="success" icon="sc-icon-wechat" circle @click="wechatLogin"></el-button>