default url prefix

This commit is contained in:
cxc
2023-02-13 17:29:41 +08:00
parent 730a93c4d3
commit f4f1101009
3 changed files with 5 additions and 3 deletions

View File

@ -116,7 +116,7 @@ getList();
margin-top: 20px; margin-top: 20px;
margin-right: 10px; margin-right: 10px;
display: flex; display: flex;
justify-content: end; justify-content: flex-end;
} }
} }
</style> </style>

View File

@ -263,7 +263,9 @@ const goLogList = (suffix: string) => {
}); });
}; };
const reset = () => { const reset = () => {
form.value = {}; form.value = {
urlPrefix: "https://chuhuankj.com",
};
if (formRef.value) { if (formRef.value) {
formRef.value.resetFields(); formRef.value.resetFields();
} }

View File

@ -9,7 +9,7 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
"/dev-api": { "/dev-api": {
target: "http://192.168.110.10:1618", target: "http://118.195.192.58:1618",
changeOrigin: true, changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, "") rewrite: (p) => p.replace(/^\/dev-api/, "")
} }