1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-07-23 03:39:32 +08:00

更新转发接口

This commit is contained in:
shangbin 2021-10-13 19:01:11 +08:00
parent 9c383652f4
commit bfe030dd8e

View File

@ -70,7 +70,7 @@ export default {
/** /**
* 以下代码中的方法会被注入到最终的代码中如果命名与源代码有相同的则会替换源代码 * 以下代码中的方法会被注入到最终的代码中如果命名与源代码有相同的则会替换源代码
* 内部集成了axios开发者可以直接通过axios发起网络请求不过接口需要允许跨域 * 内部集成了axios开发者可以直接通过axios发起网络请求不过接口需要允许跨域
* 通过http://69.234.242.21:3000/exchange?url=访 * 可以通过https://apis.sahadev.tech/exchange?url=访
* axios官方文档https://www.npmjs.com/package/axios * axios官方文档https://www.npmjs.com/package/axios
*/ */
{ {
@ -92,7 +92,7 @@ export default {
methods: { methods: {
request(){ request(){
axios.get('http://69.234.242.21:3000/exchange?url=https://www.baidu.com').then(res => console.info(res), err => console.error(err)); axios.get('https://apis.sahadev.tech/exchange?url=https://www.baidu.com').then(res => console.info(res), err => console.error(err));
} }
}, },