| @@ -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, | |||
| @@ -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'; | |||
| } | |||
| @@ -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 = () => { | |||
| @@ -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,3 +1,3 @@ | |||
| { | |||
| "appName": "RAGFlow" | |||
| "appName": "浩瀚知图" | |||
| } | |||
| @@ -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`; | |||
| } | |||