yujialong 9 months ago
parent ed5bca0c80
commit 405f78e793
  1. 6
      src/layouts/navbar/index.vue
  2. 2
      src/setting.js

@ -108,9 +108,9 @@ export default {
this.showMoreBtns = false this.showMoreBtns = false
this.menus = menuVisibleData this.menus = menuVisibleData
} }
if (data.length) { if (menuVisibleData.length) {
if (!this.$route.query.id && !this.$route.query.articleId && this.$route.path !== '/column/result') this.$router.replace(`/column?id=${data[0].id}&siteId=${data[0].siteId}`) if (!this.$route.query.id && !this.$route.query.articleId && this.$route.path !== '/column/result') this.$router.replace(`/column?id=${menuVisibleData[0].id}&siteId=${menuVisibleData[0].siteId}`)
if (!this.active) this.active = data[0].id if (!this.active) this.active = menuVisibleData[0].id
this.$nextTick(() => { this.$nextTick(() => {
const menu = document.querySelectorAll('.el-submenu') const menu = document.querySelectorAll('.el-submenu')
for (let i = 0; i < menu.length; i++) { for (let i = 0; i < menu.length; i++) {

@ -5,7 +5,7 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = `${location.origin}/` let host = `${location.origin}/`
if (isDev) { if (isDev) {
// host = 'http://192.168.31.52:10000/' // host = 'http://192.168.31.52:10000/'
host = 'http://192.168.31.136:10000/' host = 'http://192.168.31.51:10000/'
// host = 'http://10.10.11.7/' // host = 'http://10.10.11.7/'
} }

Loading…
Cancel
Save