diff --git a/src/components/Page2.vue b/src/components/Page2.vue index 6a4ddd7..a56deab 100644 --- a/src/components/Page2.vue +++ b/src/components/Page2.vue @@ -75,7 +75,6 @@ export default { totalRecords: 0, buttonType: '', totalPages: 1, - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', } }, computed: { @@ -152,11 +151,7 @@ export default { console.log('-----执行了'); this.$emit('changeLoad', true) try { - this.$http('POST', this.apiUrl, this.buildParams(), { - headers: { - 'Auth': this.token - } - }).then(response => { + this.$http('POST', this.apiUrl, this.buildParams()).then(response => { const data = response.data this.hasNextPage = data.is_has_next_page this.minId = data.minid || null diff --git a/src/components/SliderMenu.vue b/src/components/SliderMenu.vue index 8cbd0d6..0c78e37 100644 --- a/src/components/SliderMenu.vue +++ b/src/components/SliderMenu.vue @@ -67,8 +67,6 @@ export default { }, data() { return { - // AUTH - token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3NTI2NDY1NDUsIm5iZiI6MTc1MjY0NjU0NSwiZXhwIjoxNzU1MjM4NTQ1LCJ1c2VyIjoic3VidXNlciIsImxvZ2luX3R5cGUiOjAsImFpZCI6IjEifQ.G-Is-x9qPMiV_urOlDPQVRjfAIozySxL5EK2k82d46k', isCollapse: false, routerList: [], currentMenuItem:'', @@ -93,10 +91,6 @@ export default { getSiteNo() { const that = this that.$http('POST', '/agentnew/ajax_get_site_no', { - },{ - headers:{ - 'Auth': this.token - } }).then(response => { if(response.status && response.data){ that.$nextTick(() => { diff --git a/src/components/bindGoods.vue b/src/components/bindGoods.vue index 1305a8e..eef46a4 100644 --- a/src/components/bindGoods.vue +++ b/src/components/bindGoods.vue @@ -61,10 +61,6 @@ export default { uid: that.uid, type: that.type, bind_list: that.bindData, - }, { - headers: { - 'Auth': this.token - } }).then(response => { if(response.status){ that.$message.success('绑定成功'); @@ -89,10 +85,6 @@ export default { keywords: that.keywords, pdd_pati: that.pdd_pati, pdd_pagecode: that.pdd_pagecode, - }, { - headers: { - 'Auth': this.token - } }).then(response => { that.loading = true if(response.status){ diff --git a/src/components/domainAdd.vue b/src/components/domainAdd.vue index d157561..90b92bc 100644 --- a/src/components/domainAdd.vue +++ b/src/components/domainAdd.vue @@ -65,10 +65,6 @@ export default { type: Boolean, default: false }, - authToken: { - type: String, - default: '' - }, }, components: { GuipButton, @@ -77,8 +73,6 @@ export default { }, data(){ return { - // AUTH - token: '', dalogVisibleAddDomain: false, formData: { domain: '', @@ -109,9 +103,6 @@ export default { dialogVisible(newVal) { this.$emit('update:visible', newVal); }, - authToken(newVal) { - this.token = newVal; - }, }, mounted(){ @@ -147,10 +138,6 @@ export default { const that = this that.$http('POST', '/agentnew/ajax_check_dns', { domain: that.formData.domain - }, { - headers: { - 'Auth': this.token - } }).then(response => { if(response.status){ that.step1 = 2 @@ -168,10 +155,6 @@ export default { const that = this that.$http('POST', '/agentnew/ajax_check_beian', { domain: that.formData.domain - },{ - headers:{ - 'Auth': this.token - } }).then(response => { if(response.status){ that.addDomain() @@ -188,10 +171,6 @@ export default { that.$http('POST', '/agentnew/ajax_add_domain', { domain: that.formData.domain, beian: that.formData.beian - },{ - headers:{ - 'Auth': this.token - } }).then(response => { if(response.status){ this.init(); diff --git a/src/components/domainBind.vue b/src/components/domainBind.vue index 95b47f1..43465c2 100644 --- a/src/components/domainBind.vue +++ b/src/components/domainBind.vue @@ -27,7 +27,7 @@ - +