From 60f7a4afc303196af1c9a10946925a72ca242dbb Mon Sep 17 00:00:00 2001 From: "huan.xu" <275942173@qq.com> Date: Tue, 12 May 2020 17:46:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E4=BB=96=E4=BA=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/yyyf.js | 2 +- src/utils/request.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/yyyf.js b/src/api/yyyf.js index d3e0492..edc0e3b 100644 --- a/src/api/yyyf.js +++ b/src/api/yyyf.js @@ -2,7 +2,7 @@ import request from '@/utils/request'; import axios from 'axios'; import Cookie from '@/common/cookie'; import {getCurrentLanguage, languageCode2BELocalCode} from '@/common/i18n'; -import {userApi, ethApi} from './app'; +import {yyyfApi} from './app'; const Host = yyyfApi + '/'; diff --git a/src/utils/request.js b/src/utils/request.js index abf4157..a6ab6e9 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -16,7 +16,7 @@ service.interceptors.request.use( config => { // Do something before request is sent config.headers['X-Requested-Token'] = localStorage.getItem('token') || ''; - + config.headers['X-Requested-YyyfToken'] = localStorage.getItem('yyyfToken') || ''; config.headers['locale'] = languageCode2BELocalCode(getCurrentLanguage()); return config; },