DS
Я не пристаю, просто хочу понять)
Size: a a a
DS
DS
АН
DS
AE
АН
АН
DS
DS
DS
AE
DS
AE
export default ({ app, store }, inject) => {
inject('getCookie', name => {
let matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
))
try {
return matches ? decodeURIComponent(matches[1]) : undefined
}
catch(e) {
console.log('%cERROR [#0000-F2]' + e, 'background: #ffffff; color: #ff0000')
}
})
}
AE
await this.$axios.setToken(this.$getCookie('token'), 'Bearer')использование
AE
П
AE
AE
П
DS
export default ({ app, store }, inject) => {
inject('getCookie', name => {
let matches = document.cookie.match(new RegExp(
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
))
try {
return matches ? decodeURIComponent(matches[1]) : undefined
}
catch(e) {
console.log('%cERROR [#0000-F2]' + e, 'background: #ffffff; color: #ff0000')
}
})
}