diff --git a/.env.development b/.env.development index 98cfc98..4246717 100644 --- a/.env.development +++ b/.env.development @@ -13,4 +13,6 @@ VITE_APP_SYSTEM_APP = 'stzl' VITE_APP_AGAIN = 1 VITE_OFFICE_HOST='http://myvuetest.net/kkapi' VITE_ONLYOFFICE_HOST = 'http://myvuetest.net/onlyoffice' -VITE_DEFAULT_AI_AGENT = '5bd9b0e9-d3f4-4089-670a-880009e925a8' \ No newline at end of file +VITE_DEFAULT_AI_AGENT = '5bd9b0e9-d3f4-4089-670a-880009e925a8' + +VITE_AI_API_TOKEN = '7551e976-d154-44a2-7569-204277f5123a' \ No newline at end of file diff --git a/.env.production b/.env.production index aa6082a..52c1baf 100644 --- a/.env.production +++ b/.env.production @@ -8,4 +8,6 @@ VITE_APP_SJZT_URL = 'http://120.224.6.6:29911/prod-api' VITE_APP_SYSTEM_APP = 'stzl' VITE_APP_AGAIN = 1 VITE_ONLYOFFICE_HOST = 'https://gyhlw.hxgk.group/onlyoffice' -VITE_DEFAULT_AI_AGENT = '74938263-ffe5-43c5-90af-25e62d34a51f' \ No newline at end of file +VITE_DEFAULT_AI_AGENT = '74938263-ffe5-43c5-90af-25e62d34a51f' + +VITE_AI_API_TOKEN = '7551e976-d154-44a2-7569-204277f5123a' \ No newline at end of file diff --git a/src/api/doc/index.ts b/src/api/doc/index.ts index 5748dbb..13de555 100644 --- a/src/api/doc/index.ts +++ b/src/api/doc/index.ts @@ -6,7 +6,7 @@ import request from '@/utils/axios/index'; import { AxiosPromise } from 'axios'; -import { matterPage,matterResutList,createDir,createShare,respCreateShare,matterTreeList} from './type'; +import { matterPage,matterResutList,createDir,createShare,respCreateShare,matterTreeList,apptoken} from './type'; /** @@ -18,7 +18,8 @@ export function getShareList( uid:string,data?: matterPage): AxiosPromise { config.headers["user-token"] = userPinia.userToken; } + //form 云盘请求不加密, 但是Auth-key还是要传输,接口返回的数据可能需要加密 :by han2015 + if (config.headers['Content-Type'] == 'application/x-www-form-urlencoded'||config.headers['Content-Type'] == 'multipart/form-data' ){ + return config + } + // console.error('<---------------请求拦截---------->') // console.error('请求拦截----config------>', config.url) // console.error('请求拦截----data------>', config)