diff --git a/src/api/jyh/index.ts b/src/api/jyh/index.ts index f3af4f3..d13a381 100644 --- a/src/api/jyh/index.ts +++ b/src/api/jyh/index.ts @@ -452,3 +452,35 @@ export function fetchUpdateRecommendQuestions(data) { data: data, }); } +export function qualityTaskOverview(data) { + const {softwareId} = data; + return axios.request({ + url: `/gateway/quality/task-overview/software` + `/${softwareId}`, + method: 'GET', + // headers: { + // Authorization: 'Bearer ' + localStorage.getItem('access_token'), + // } + }); +} + +export function qualityDefectPage(data) { + const {pageNum,pageSize,softwareId} = data; + return axios.request({ + url: `/gateway/quality/defect/page` + `?pageNum=${pageNum}&pageSize=${pageSize}&softwareId=${softwareId}`, + method: 'GET', + // headers: { + // Authorization: 'Bearer ' + localStorage.getItem('access_token'), + // } + }); +} + +export function loginAccess() { + return axios.request({ + url: `/gateway/u-auth/login-access`, + method: 'POST', + data: {}, + headers: { + Authorization: 'Bearer ' + localStorage.getItem('access_token'), + } + }); +} diff --git a/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue b/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue index b40bca9..d7c44f6 100644 --- a/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue +++ b/src/views/Jyh/AI/Home/components/ViewHistoryAside/ViewHistoryAside.vue @@ -446,7 +446,7 @@ const getQuestionHistory = async () => { // Message.error(data.error||'接口异常!') } } else { - Message.error('请先登录!') + // Message.error('请先登录!') } }; const getQuestionCollection = async () => { @@ -473,7 +473,7 @@ const getQuestionCollection = async () => { // Message.error(data.error||'接口异常!') } } else { - Message.error('请先登录!') + // Message.error('请先登录!') } }; diff --git a/src/views/Jyh/Version/Detail/CodeQuality/Code.vue b/src/views/Jyh/Version/Detail/CodeQuality/Code.vue index c1e0fea..c503582 100644 --- a/src/views/Jyh/Version/Detail/CodeQuality/Code.vue +++ b/src/views/Jyh/Version/Detail/CodeQuality/Code.vue @@ -1,6 +1,6 @@