mirror of
https://github.com/jumpserver/lina.git
synced 2025-04-28 03:20:24 +00:00
perf: 修改 chatai
This commit is contained in:
parent
a3c387d445
commit
63c02eb14a
@ -31,9 +31,9 @@ import VueLogger from 'vuejs-logger'
|
||||
import loggerOptions from './utils/logger'
|
||||
import ECharts from 'vue-echarts'
|
||||
import service from '@/utils/request'
|
||||
import request from '@/utils/request'
|
||||
import { message } from '@/utils/message'
|
||||
import xss from '@/utils/xss'
|
||||
import request from '@/utils/request'
|
||||
import ElTableTooltipPatch from '@/utils/elTableTooltipPatch.js'
|
||||
|
||||
/**
|
||||
@ -94,7 +94,8 @@ new Vue({
|
||||
;(function() {
|
||||
request({
|
||||
url: '/api/v1/authentication/user-session/',
|
||||
method: 'get'
|
||||
method: 'get',
|
||||
disableFlashErrorMsg: true
|
||||
})
|
||||
})()
|
||||
|
||||
@ -105,6 +106,7 @@ window.addEventListener('beforeunload', (event) => {
|
||||
IdBeforeunload = true
|
||||
request({
|
||||
url: '/api/v1/authentication/user-session/',
|
||||
method: 'delete'
|
||||
method: 'delete',
|
||||
disableFlashErrorMsg: true
|
||||
})
|
||||
})
|
||||
|
@ -1,11 +1,12 @@
|
||||
<template>
|
||||
<div class="chat-container">
|
||||
<ChatAi ref="chat" :drawer-panel-visible="true" :has-close="false" />
|
||||
<ChatAi ref="chat" :drawer-panel-visible="true" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ChatAi from '@/components/Apps/ChatAi'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ChatAi
|
||||
@ -15,7 +16,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.$refs.chat.initWebSocket()
|
||||
},
|
||||
methods: {
|
||||
}
|
||||
|
@ -47,16 +47,16 @@ module.exports = {
|
||||
// change xxx-api/login => mock/login
|
||||
// detail: https://cli.vuejs.org/config/#devserver-proxy
|
||||
'/api/': {
|
||||
target: process.env.VUE_APP_CORE_HOST,
|
||||
target: process.env.VUE_APP_CORE_HOST || 'http://127.0.0.1:8080',
|
||||
changeOrigin: true
|
||||
},
|
||||
'/ws/': {
|
||||
target: process.env.VUE_APP_CORE_WS,
|
||||
target: process.env.VUE_APP_CORE_WS || 'ws://1237.0.0.1:8080',
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
},
|
||||
'/koko/': {
|
||||
target: process.env.VUE_APP_KOKO_HOST,
|
||||
target: process.env.VUE_APP_KOKO_HOST || 'http://127.0.0.1:5000',
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
},
|
||||
@ -75,7 +75,7 @@ module.exports = {
|
||||
changeOrigin: true
|
||||
},
|
||||
'^/(core|static|media)/': {
|
||||
target: process.env.VUE_APP_CORE_HOST,
|
||||
target: process.env.VUE_APP_CORE_HOST || 'http://127.0.0.1:8080',
|
||||
changeOrigin: true
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user