我无法在我的 axios 请求中使用标头
这有效
应用程序.vue
axios
.get(Config.BASEURL + 'pref/footer', { })
.then(response => (this.footer = response.data))
这不
应用程序.vue
axios
.get(Config.BASEURL + 'pref/footer', { crossDomain: true, headers: {"Authorization":1}})
.then(response => (this.footer = response.data))
我的终点看起来像这样
应用程序.cfc
...
variables.framework.routes = [
// Rest
{ "$GET/rest/carousel" = "rest/carousel" },
{ "$PUT/rest/contactus" = "rest/contactus" },
{ "$POST/rest/login" = "restLogin/loginPOST" },
{ "$GET/rest/message" = "rest/message" },
{ "$GET/rest/page/:id" = "rest/page/slug/:id" },
{ "$GET/rest/page" = "rest/page" },
{ "$GET/rest/pref/:id" = "rest/pref/slug/:id" },
...
我收到如下所示的错误消息:
在 中App.vue
,我不知道要添加什么。