提交
This commit is contained in:
@@ -48,8 +48,6 @@ function copy(value, message) {
|
||||
|
||||
// 启动加载中
|
||||
function startupUnderLoading(that) {
|
||||
|
||||
// this.
|
||||
that.loading = that.$loading({
|
||||
lock: true,
|
||||
text: '加载中...',
|
||||
@@ -65,6 +63,7 @@ function closeUnderLoading(that) {
|
||||
|
||||
// 时间戳
|
||||
function formattedDate(timestamp) {
|
||||
if (!timestamp) return
|
||||
const date = new Date(timestamp * 1000);
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
|
||||
@@ -29,6 +29,7 @@ service.interceptors.request.use(config => {
|
||||
//发请求前做的一些处理,数据转化,配置请求头,设置token,设置loading等,根据需求去添加
|
||||
//注意使用token的时候需要引入cookie方法或者用本地localStorage等方法,推荐js-cookie
|
||||
config['headers']['authorization'] = "qj2q1qk1on0curclipghjtv5ja1g9eq2"
|
||||
// config['headers']['authorization'] = "661aiz52k5e6vqgmkxnz0wvbv8nciz8h"
|
||||
return config
|
||||
}, error => {
|
||||
Promise.reject(error)
|
||||
|
||||
Reference in New Issue
Block a user