Commit 3d1b2841 authored by chenqikuai's avatar chenqikuai

fix

parent cbccda07
export function getLatestedIosVersion() { export function getLatestedIosVersion() {
return fetch('/proxyApi/version/latest?os=ios', { return fetch('/proxyApi/api/v1/version/latest?os=ios', {
method: 'get', method: 'get',
}).then((ret) => ret.json()) }).then((ret) => ret.json())
} }
export function getLatestedAndroidVersion() { export function getLatestedAndroidVersion() {
return fetch('/proxyApi/version/latest?os=android', { return fetch('/proxyApi/api/v1/version/latest?os=android', {
method: 'get', method: 'get',
}).then((ret) => ret.json()) }).then((ret) => ret.json())
} }
...@@ -11,7 +11,7 @@ export default defineConfig({ ...@@ -11,7 +11,7 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
'/proxyApi': { '/proxyApi': {
target: 'http://172.16.102.150:8091/api/v1/', target: 'http://172.16.102.150:8091/',
rewrite: (path) => path.replace(/^\/proxyApi/, ''), rewrite: (path) => path.replace(/^\/proxyApi/, ''),
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment