refactor(webapp): 更新 API地址并添加测试请求

- 修改了 baseurl.ts 中的 API 地址,使用本地测试地址
- 在 manage.vue 中添加了测试请求函数 getList,用于获取发票列表
This commit is contained in:
liuxiaoqing 2025-08-18 22:19:28 +08:00
parent 1170d5238a
commit c22a509633
4 changed files with 18 additions and 2 deletions

Binary file not shown.

View File

@ -4,6 +4,7 @@ import {h,ref} from "vue";
import {
SearchOutlined
} from '@ant-design/icons-vue'
import request from "#/utils/request.ts";
const columns = [
// {
// title: '',
@ -73,6 +74,15 @@ let searchParams = ref({
status: '1'
}
});
const getList = () => {
request.post("/listInvoice", {
verify_status : 'yes'
}).then(( res ) => {
console.log(res)
})
}
getList()
</script>
<template>

View File

@ -1 +1,2 @@
export const baseURL = "http://101.200.148.149:8555"
export const baseURL = "http://192.168.1.100:5555"
// export const baseURL = "http://101.200.148.149:8555"

View File

@ -6,7 +6,12 @@ export default defineConfig({
plugins: [vue()],
server: {
host: '0.0.0.0',
port: 5173
port: 5173,
proxy: {
'/api/': {
changeOrigin: true,
}
}
},
resolve: {
alias: {