feat: 添加伊利GPT跳转功能
- 在 nginx 配置中添加 /yiligpt路径,跳转到伊利GPT页面 - 在 Dockerfile 中使用自定义的 default.conf 文件- 在 vue.config.js 中添加 /yiligpt 代理配置,指向 AI 助手 URL
This commit is contained in:
@@ -3,7 +3,7 @@ const Components = require('unplugin-vue-components/webpack');
|
||||
const { ElementPlusResolver } = require('unplugin-vue-components/resolvers');
|
||||
const MomentLocalesPlugin = require('moment-locales-webpack-plugin');
|
||||
const LodashModuleReplacementPlugin = require("lodash-webpack-plugin");
|
||||
const { proxyUrl, proxyUrlDelivery } = require('./src/config');
|
||||
const { proxyUrl, proxyUrlDelivery,aiAssistantUrl } = require('./src/config');
|
||||
const { baseOss } = require('./src/config');
|
||||
|
||||
const path = require('path');
|
||||
@@ -33,6 +33,13 @@ module.exports = {
|
||||
},
|
||||
cookieDomainRewrite: 'localhost',
|
||||
},
|
||||
'/yiligpt': {
|
||||
target: `${ aiAssistantUrl }`,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
'^/yiligpt': '', // 路径重写
|
||||
},
|
||||
},
|
||||
// '/daixin': {
|
||||
// target: proxyUrlMessageCenter,
|
||||
// changeOrigin: false,
|
||||
|
||||
Reference in New Issue
Block a user