Я запустил свой сайт и протестировал во всех браузерах на рабочем столе.Все выглядит хорошо.
Но когда я тестирую на своем iPhone, iPad и другом iPhone, вызовы API не заканчиваются.Я специально вижу, что звонок был «отменен».
Это происходит во всех браузерах на всех устройствах Apple, которые я тестировал.Но я не могу повторить эту проблему в другом месте.Любые предложения?
Выполнение: Nuxt, Vuetify, VeeValidate, PWA, SSR
Я пытался использовать эмулятор для получения отладочной информации и информации о вызовах API.Вызовы POST немедленно завершаются ошибкой.
Просмотр этих ошибок до сбоя POST 69f0966… .js: 2 ReferenceError: Не удается найти переменную: performancehide @ 69f0966… .js: 2h @ 69f0966… .js: 2 69f0966….js: 2 ReferenceError: Невозможно найти переменную: performancemanhow @ 69f0966… .js: 2m @ 69f0966… .js: 2 69f0966… .js: 2 ReferenceError: Невозможно найти переменную: performancehide @ 69f0966… .js: 2h @69f0966… .js: 2 69f0966… .js: 2 ReferenceError: Невозможно найти переменную: Performancemanceshow @ 69f0966… .js: 2m @ 69f0966… .js: 2 69f0966… .js: 2 ReferenceError: Невозможно найти переменную: performancehide@ 69f0966… .js: 2h @ 69f0966… .js: 2 69f0966… .js: 2 ReferenceError: Невозможно найти переменную: performancemanceshow @ 69f0966… .js: 2m @ 69f0966… .js: 2 69f0966… .js: 2 ReferenceError: Не удается найти переменную: производительность
postLogin() {
this.$validator.validateAll().then(x => {
if (x)
{
this.validateLogin()
}
}).catch(e => { })
},
validateLogin: function() {
const config = {
headers: { 'APIKey': 'REDACTED'}
}
this.$axios.post('REDACTED', this.userObject, config).then(response =>
{
if (response.data.includes("ERROR"))
{
this.success = false
this.result = response.data
}
else
{
this.success = true
this.result = ''
const auth = {
accessToken: response.data
}
this.$store.commit('setAuth', auth)
Cookie.set('auth', auth)
this.getAccountInfo()
}
}).catch(error =>{ console.log(error) })
},
getAccountInfo: function() {
const config = {
headers: { 'APIKey': 'REDACTED', 'Authorization': 'Bearer ' + this.$store.state.auth.accessToken }
}
this.$axios.get('REDACTED', config).then(response =>
{
if (response != null && response.data != null)
{
this.$store.commit('setFirst', response.data.First)
Cookie.set('first', response.data.First)
if (this.$store.state.fit)
this.$router.replace({ path: '/shop' })
else
this.$router.replace({ path: '/' })
}
}).catch(err => {
console.log(err)
})
}
POST отменен только на устройствах iOS