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:
parent
9c383652f4
commit
bfe030dd8e
@ -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));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user