优化开发展示

This commit is contained in:
aixianling
2022-06-13 10:46:55 +08:00
parent 2a4d9b2b1c
commit b35314bf83
10 changed files with 19 additions and 21 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div id="app">
<header-nav v-if="showTools" :title="serveName">
<header-nav v-if="showTools" title="web端产品库">
<template #right>
<div @click="showTools=false">隐藏工具栏</div>
<div @click="handleLogin">点此登录</div>
@@ -29,13 +29,6 @@ export default {
components: {HeaderNav, MainContent, SliderNav},
computed: {
...mapState(['user']),
serveName() {
let names = {
development: "村微产品库",
oms: "运营平台产品分库",
}
return names[process.env.NODE_ENV]
},
login() {
let url = '/auth/oauth/token';
/project\/sass/g.test(location.pathname) && (url += "?corpId=ww596787bb70f08288")
@@ -75,9 +68,6 @@ export default {
created() {
if (this.user.token) this.getUserInfo()
wx = jWeixin
},
mounted() {
document.title = this.serveName
}
}
</script>