提交 59f5dcbb 编写于 作者: Q qq_38870145

Auto Commit

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