This commit is contained in:
xiaoronghao
2023-04-13 19:12:17 +08:00
parent d5ab2ca459
commit bb952fc553
15 changed files with 239 additions and 190 deletions

View File

@@ -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');

View File

@@ -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)