提交测试
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user