🐛 fix(UI): 修改dr配置,动态修改title和大屏title

This commit is contained in:
fhysy 2024-06-27 10:01:45 +08:00
parent 0a51237110
commit 4396effe7e
5 changed files with 6 additions and 5 deletions

View File

@ -17,7 +17,7 @@ VUE_APP_GZGQR_URL = 'images/dr/gzhqr.jpg'
# 小程序二维码 # 小程序二维码
VUE_APP_YDXCX_URL = 'images/dr/ydxcx.jpg' VUE_APP_YDXCX_URL = 'images/dr/ydxcx.jpg'
# 系统名称 # 系统名称
VUE_APP_SYSTEM_NAME = '数字用电管理系统' VUE_APP_SYSTEM_NAME = 'DS-service'
# 系统登录页 login-green、login-blue-black、login-blue-white # 系统登录页 login-green、login-blue-black、login-blue-white
#VUE_APP_LOGIN_PAGE = 'login-green' #VUE_APP_LOGIN_PAGE = 'login-green'
#VUE_APP_LOGIN_PAGE = 'login-blue-black' #VUE_APP_LOGIN_PAGE = 'login-blue-black'

View File

@ -17,7 +17,7 @@ VUE_APP_GZGQR_URL = 'images/dr/gzhqr.jpg'
# 小程序二维码 # 小程序二维码
VUE_APP_YDXCX_URL = 'images/dr/ydxcx.jpg' VUE_APP_YDXCX_URL = 'images/dr/ydxcx.jpg'
# 系统名称 # 系统名称
VUE_APP_SYSTEM_NAME = '数字用电管理系统' VUE_APP_SYSTEM_NAME = 'DS-service'
# 系统登录页 login-green、login-blue-black、login-blue-white # 系统登录页 login-green、login-blue-black、login-blue-white
#VUE_APP_LOGIN_PAGE = 'login-green' #VUE_APP_LOGIN_PAGE = 'login-green'
#VUE_APP_LOGIN_PAGE = 'login-blue-black' #VUE_APP_LOGIN_PAGE = 'login-blue-black'

View File

@ -21,7 +21,7 @@
<script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=4b483d227a9c7dd12e46faae5a8c8af8&plugin=AMap.Geocoder"></script> <script type="text/javascript" src="https://webapi.amap.com/maps?v=1.4.15&key=4b483d227a9c7dd12e46faae5a8c8af8&plugin=AMap.Geocoder"></script>
<!-- <script type="text/javascript" src="<%= BASE_URL %>cdn/js/jessibuca/jessibuca.js"></script>--> <!-- <script type="text/javascript" src="<%= BASE_URL %>cdn/js/jessibuca/jessibuca.js"></script>-->
<script src="<%= BASE_URL %>cdn/js/liveplayer/liveplayer-lib.min.js"></script> <script src="<%= BASE_URL %>cdn/js/liveplayer/liveplayer-lib.min.js"></script>
<title><%= webpackConfig.name %></title> <title><%= process.env.VUE_APP_SYSTEM_NAME %></title>
<style> <style>
html, html,
body, body,

View File

@ -1,6 +1,6 @@
// 手动配置的地址 // 手动配置的地址
window.dasConfig = { window.dasConfig = {
ip: 'power-core.drgyen.com', ip: 'digital-core.drgyen.com',
port: '', port: '',
prodApi: '', prodApi: '',
protocol: 'https://', protocol: 'https://',

View File

@ -202,7 +202,8 @@ export default {
}, },
computed: { computed: {
attributeBigTitle() { attributeBigTitle() {
return this.$store.getters.attributeInfo["bigTitle"] || this.title; // return this.$store.getters.attributeInfo["bigTitle"] || this.title;
return process.env.VUE_APP_SYSTEM_NAME || this.title;
}, },
}, },
watch: { watch: {