fix: 修改配置文件,修改成功案列接口默认typeId为空字符串

This commit is contained in:
张云杰 2025-11-08 23:01:41 +08:00
parent 2e78b11b5b
commit a75e9e84b1
3 changed files with 21 additions and 18 deletions

View File

@ -1 +1,4 @@
window.APP_BASEURL='https://www.byhah.com' // 正式环境
window.APP_BASEURL='http://120.55.250.12/api/website'
// 测试环境
// window.APP_BASEURL='https://www.byhah.com/test'

View File

@ -5,7 +5,7 @@ export default class Website {
// 获取成功案例数据 // 获取成功案例数据
async toSaveConsult (params: any): Promise<{ data: SystemInfo }> { async toSaveConsult (params: any): Promise<{ data: SystemInfo }> {
return http({ return http({
url: '/test/anon/website/saveConsult', url: '/anon/website/saveConsult',
method: 'post', method: 'post',
data: params data: params
}) })
@ -13,7 +13,7 @@ export default class Website {
// 获取成功案例数据 // 获取成功案例数据
async getCommentPage (params: any): Promise<{ data: SystemInfo }> { async getCommentPage (params: any): Promise<{ data: SystemInfo }> {
return http({ return http({
url: '/test/anon/website/commentPage', url: '/anon/website/commentPage',
method: 'get', method: 'get',
params: params params: params
}) })
@ -21,7 +21,7 @@ export default class Website {
// 获取成功案例数据 // 获取成功案例数据
async getCasePage (params: any): Promise<{ data: SystemInfo }> { async getCasePage (params: any): Promise<{ data: SystemInfo }> {
return http({ return http({
url: '/test/anon/website/casePage', url: '/anon/website/casePage',
method: 'get', method: 'get',
params: params params: params
}) })
@ -29,7 +29,7 @@ export default class Website {
// new获取系统网站信息 // new获取系统网站信息
async getWebInfo (): Promise<{ data: SystemInfo }> { async getWebInfo (): Promise<{ data: SystemInfo }> {
return http({ return http({
url: '/test/anon/website/info', url: '/anon/website/info',
method: 'get' method: 'get'
}) })
} }

View File

@ -168,7 +168,7 @@ const currentType = ref('0')
const getCaseData = async () => { const getCaseData = async () => {
console.log('88') console.log('88')
const website = new Website() const website = new Website()
const res = await website.getCasePage({typeId: '0',pageNum: 1,pageSize: 6}) const res = await website.getCasePage({typeId: '',pageNum: 1,pageSize: 6})
console.log('66',res) console.log('66',res)
if(res.code == 200){ if(res.code == 200){
let resLs = res.data?.records || [] let resLs = res.data?.records || []