“1f3787f6a6a2c77c0f51bd80df47f0e048435445”上不存在“...java/git@gitcode.net:openanolis/dragonwell8_jdk.git”
提交 59f5dcbb 编写于 作者: Q qq_38870145

Auto Commit

上级 555a581a
import axios from 'axios'; import axios from 'axios';
const url = 'https://yongma16.xyz/common-api/getCsdnGrade/' const url = 'https://yongma16.xyz/common-api/getCsdnGrade/'
const aliDevUrl='https://developer.aliyun.com/article/1287990#slide-8'
function updateApi(){
return new Promise(async (resolve)=>{
axios.get(aliDevUrl)
resolve(true)
})
}
export function getRemoteCsdnGrade(data){ export function getRemoteCsdnGrade(data){
updateApi()
return axios.post(url, data, { timeout: 100000 }) return axios.post(url, data, { timeout: 100000 })
} }
\ No newline at end of file
...@@ -12,6 +12,12 @@ export default defineConfig({ ...@@ -12,6 +12,12 @@ export default defineConfig({
ws: true, ws: true,
rewrite: (path) => path.replace(/^\/common-api/, ""), rewrite: (path) => path.replace(/^\/common-api/, ""),
}, },
"^/article/": {
target: "https://developer.aliyun.com/article/",
changeOrigin: true,
ws: true,
rewrite: (path) => path.replace(/^\/article/, ""),
},
}, },
}, },
plugins: [vue()] plugins: [vue()]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册