refactor(webapp): 更新 API地址并添加测试请求
- 修改了 baseurl.ts 中的 API 地址,使用本地测试地址 - 在 manage.vue 中添加了测试请求函数 getList,用于获取发票列表
This commit is contained in:
parent
1170d5238a
commit
c22a509633
Binary file not shown.
@ -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>
|
||||
|
||||
@ -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"
|
||||
@ -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: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user