提交测试

This commit is contained in:
xiaoronghao
2023-04-17 15:47:08 +08:00
parent 1ecc639410
commit 34d052255f
21 changed files with 165 additions and 151 deletions

View File

@@ -27,21 +27,20 @@ function goTologin() {
// 点击复制
function copy(value, message) {
let copyInput = document.createElement('input');//创建input元素
document.body.appendChild(copyInput);//向页面底部追加输入框
copyInput.setAttribute('value', value);//添加属性将url赋值给input元素的value属性
copyInput.select();//选择input元素
document.execCommand("Copy");//执行复制命令
//复制之后再删除元素,否则无法成功赋值
copyInput.remove();//删除动态创建的节点
if (message) this.$message.success(message);
let copyInput = document.createElement('input');//创建input元素
document.body.appendChild(copyInput);//向页面底部追加输入框
copyInput.setAttribute('value', value);//添加属性将url赋值给input元素的value属性
copyInput.select();//选择input元素
document.execCommand("Copy");//执行复制命令
//复制之后再删除元素,否则无法成功赋值
copyInput.remove();//删除动态创建的节点
if (message) this.$Message.success(message);
}
// 启动加载中
function startupUnderLoading(that) {
that.loading = that.$loading({
that.loading = this.$loading({
lock: true,
text: '加载中...',
background: 'rgba(0, 0, 0, 0.7)'
@@ -50,7 +49,7 @@ function startupUnderLoading(that) {
// 关闭加载中
function closeUnderLoading(that) {
that.loading && that.loading.close();
that.loading && this.loading.close();
that.loading = null
}

View File

@@ -28,7 +28,7 @@ const service = axios.create({
service.interceptors.request.use(config => {
//发请求前做的一些处理数据转化配置请求头设置token,设置loading等根据需求去添加
//注意使用token的时候需要引入cookie方法或者用本地localStorage等方法推荐js-cookie
config['headers']['authorization'] = "qj2q1qk1on0curclipghjtv5ja1g9eq2"
// config['headers']['authorization'] = "qj2q1qk1on0curclipghjtv5ja1g9eq2"
// config['headers']['authorization'] = "661aiz52k5e6vqgmkxnz0wvbv8nciz8h"
return config
}, error => {