Просмотр исходного кода

feat: ss-ragflow改为ss-agent

Hacked_v0.17.2
fellow99 7 месяцев назад
Родитель
Сommit
580e3a3324

+ 3
- 3
web/.umirc.ts Просмотреть файл

@@ -6,12 +6,12 @@ import routes from './src/routes';

export default defineConfig({
title: appName,
outputPath: 'dist/ss-ragflow',
outputPath: 'dist/ss-agent',
alias: { '@parent': path.resolve(__dirname, '../') },
npmClient: 'npm',
base: '/ss-ragflow/',
base: '/ss-agent/',
routes,
publicPath: '/ss-ragflow/',
publicPath: '/ss-agent/',
esbuildMinifyIIFE: true,
icons: {},
hash: true,

+ 1
- 1
web/src/components/api-service/embed-modal/index.tsx Просмотреть файл

@@ -52,7 +52,7 @@ const EmbedModal = ({
}, []);

const generateIframeSrc = () => {
let src = `${location.origin}/ss-ragflow/chat/share?shared_id=${token}&from=${form}&auth=${beta}`;
let src = `${location.origin}/ss-agent/chat/share?shared_id=${token}&from=${form}&auth=${beta}`;
if (visibleAvatar) {
src += '&visible_avatar=1';
}

+ 1
- 1
web/src/components/api-service/hooks.ts Просмотреть файл

@@ -82,7 +82,7 @@ export const useShowBetaEmptyError = () => {

const getUrlWithToken = (token: string, from: string = 'chat') => {
const { protocol, host } = window.location;
return `${protocol}//${host}/ss-ragflow/chat/share?shared_id=${token}&from=${from}`;
return `${protocol}//${host}/ss-agent/chat/share?shared_id=${token}&from=${from}`;
};

const useFetchTokenListBeforeOtherStep = () => {

+ 1
- 1
web/src/components/new-document-link.tsx Просмотреть файл

@@ -25,7 +25,7 @@ const NewDocumentLink = ({
let nextLink = link;
const extension = getExtension(documentName);
if (!link) {
nextLink = `/document/${documentId}?ext=${extension}&prefix=${prefix}`;
nextLink = `/ss-agent/document/${documentId}?ext=${extension}&prefix=${prefix}`;
}

return (

+ 1
- 1
web/src/conf.json Просмотреть файл

@@ -1,3 +1,3 @@
{
"appName": "RAGFlow"
"appName": "浩瀚知图"
}

+ 1
- 1
web/src/utils/authorization-util.ts Просмотреть файл

@@ -59,5 +59,5 @@ export default storage;

// Will not jump to the login page
export function redirectToLogin() {
window.location.href = location.origin + `/ss-ragflow/login`;
window.location.href = location.origin + `/ss-agent/login`;
}

Загрузка…
Отмена
Сохранить