Commit 58fb478a authored by derong.zhang's avatar derong.zhang

处理切换服务时有未发布内容问题

parent 75958a61
......@@ -19,7 +19,7 @@ module.exports = {
},
// Various Dev Server settings
host: 'localhost', // can be overwritten by process.env.HOST
host: '0.0.0.0', // can be overwritten by process.env.HOST
port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: true,
errorOverlay: true,
......
......@@ -34,31 +34,31 @@
</template>
<script>
import {logout} from '../api/user.api'
export default {
data () {
return {
isCollapsed: false
}
},
computed : {
menuitemClasses: function () {
return [
'menu-item',
this.isCollapsed ? 'collapsed-menu' : ''
]
}
export default {
data () {
return {
isCollapsed: false
}
},
computed: {
menuitemClasses: function () {
return [
'menu-item',
this.isCollapsed ? 'collapsed-menu' : ''
]
}
},
methods: {
go () {
this.$router.push('/mainconfiguration')
},
methods: {
go () {
this.$router.push('/mainconfiguration')
},
logOut () {
logout().then((data) => {
this.$router.push('/')
})
}
logOut () {
logout().then((data) => {
this.$router.push('/')
})
}
}
}
</script>
<style scoped>
.layout{
......@@ -116,4 +116,4 @@ import {logout} from '../api/user.api'
font-size: 20px;
font-weight: 900;
}
</style>
\ No newline at end of file
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment