diff --git a/src/components/AssetSelect/index.vue b/src/components/AssetSelect/index.vue index 7b10e5e84..28f3f07e8 100644 --- a/src/components/AssetSelect/index.vue +++ b/src/components/AssetSelect/index.vue @@ -73,6 +73,7 @@ export default { prop: 'hostname', label: this.$t('assets.Hostname'), sortable: true, + showOverflowTooltip: true, formatter: DetailFormatter, formatterArgs: { route: 'AssetDetail' diff --git a/src/utils/request.js b/src/utils/request.js index 63e4def9a..30a25392a 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -49,7 +49,8 @@ service.interceptors.request.use( ) function ifUnauthorized({ response, error }) { - if (response.status === 401 && response.config.url.indexOf('/users/profile') !== -1) { + if (response.status === 401 && response.request.url.indexOf('/users/profile') !== -1) { + response.config.disableFlashErrorMsg = true // 未授权重定向到登录页面 const title = i18n.t('common.Info') const msg = i18n.t('auth.LoginRequiredMsg') @@ -64,7 +65,6 @@ function ifUnauthorized({ response, error }) { } function ifBadRequest({ response, error }) { - console.log(response) if (response.status === 400) { error.message = i18n.t('common.BadRequestErrorMsg') } diff --git a/vue.config.js b/vue.config.js index 0a6416dea..c481f30ff 100644 --- a/vue.config.js +++ b/vue.config.js @@ -31,7 +31,7 @@ module.exports = { productionSourceMap: false, devServer: { port: port, - host: 'localhost', + host: '0.0.0.0', open: false, overlay: { warnings: false,