不同环境的区别

Lvtianfang
吕天方 2 weeks ago
parent 66d0ef5162
commit 1f7b82e74a

@ -31,40 +31,41 @@ export default {
eventInfoTrue:true,
}
},
watch:{
$route:{
handler(route){
let timeOne;
let timeTwo;
this.isTrue = true;
this.getGetErrorMsg();
//
timeOne = setInterval(()=>{
this.getGetErrorMsg();
},60000)
// clearInterval(timeTwo)
// if(route.meta.title == '') {
// this.isTrue = true;
// this.getGetErrorMsg();
// //
// timeOne = setInterval(()=>{
// this.getGetErrorMsg();
// },3600000)
// clearInterval(timeTwo)
// } else {
// clearInterval(timeTwo)
// this.isTrue = false;
// this.getLimitOneMsg();
// //
// timeTwo = setInterval(()=>{
// this.getLimitOneMsg();
// },60000)
// clearInterval(timeOne)
// }
},
immediate:true,
}
},
//
// watch:{
// $route:{
// handler(route){
// let timeOne;
// let timeTwo;
// this.isTrue = true;
// this.getGetErrorMsg();
// //
// timeOne = setInterval(()=>{
// this.getGetErrorMsg();
// },60000)
// // clearInterval(timeTwo)
// // if(route.meta.title == '') {
// // this.isTrue = true;
// // this.getGetErrorMsg();
// // //
// // timeOne = setInterval(()=>{
// // this.getGetErrorMsg();
// // },3600000)
// // clearInterval(timeTwo)
// // } else {
// // clearInterval(timeTwo)
// // this.isTrue = false;
// // this.getLimitOneMsg();
// // //
// // timeTwo = setInterval(()=>{
// // this.getLimitOneMsg();
// // },60000)
// // clearInterval(timeOne)
// // }
// },
// immediate:true,
// }
// },
methods:{
//
getLimitOneMsg(){

@ -74,6 +74,7 @@ export const constantRoutes = [
// },
// ]
},
// 以下测试环境需注释掉
{
path: '/index',
component: () => import('@/views/index'),
@ -226,6 +227,7 @@ Router.prototype.replace = function push(location) {
}
export default new Router({
// 测试环境注释掉
mode: 'history', // 去掉url中的#
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes

@ -16,6 +16,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
const service = axios.create({
// axios中请求配置有baseURL选项表示请求URL公共部分
baseURL: process.env.NODE_ENV === "production" ? location.origin + '/api' : process.env.VUE_APP_BASE_API,
// 测试环境使用
// baseURL: process.env.VUE_APP_BASE_API,
// 超时
timeout: 10000

@ -95,50 +95,52 @@ export default {
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// console.log(currentDate >= targetDate);
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// 使
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// 使
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -152,52 +152,54 @@ export default {
mounted() {
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// localStorage.setItem('Admin-Token',res.token)
// // setToken(res.token)
// this.$nextTick(() => {
// this.initMap();
// });
// this.getList();
// })
// })
// });
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// localStorage.setItem('Admin-Token',res.token)
// this.$nextTick(() => {
// this.initMap();
// });
// this.getList();
// })
// }
// })
this.$nextTick(() => {
this.initMap();
});
this.getList();
// 使
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
localStorage.setItem('Admin-Token',res.token)
// setToken(res.token)
this.$nextTick(() => {
this.initMap();
});
this.getList();
})
})
});
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
localStorage.setItem('Admin-Token',res.token)
this.$nextTick(() => {
this.initMap();
});
this.getList();
})
}
})
// 使
// this.$nextTick(() => {
// this.initMap();
// });
// this.getList();
},
methods:{
mountedMethods(){

@ -121,50 +121,52 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// 使
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// 使
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -123,50 +123,52 @@ export default {
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// if(currentDate >= targetDate) {
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// 使
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// 使
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -123,51 +123,52 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// 使
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// 使
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {

@ -121,50 +121,52 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// 使
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// 使
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -121,50 +121,52 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// 使
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// 使
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

@ -117,50 +117,52 @@ export default {
mounted(){
// const currentDate = new Date();
// const targetDate = new Date(2024, 10, 1, 0, 0, 0);
// verify().then(res=>{
// if(!res.data) {
// this.$prompt('<div>3</div><div class="warningText">使22026111</div>', '', {
// confirmButtonText: '',
// type:"warning",
// closeOnPressEscape:false,
// showCancelButton: false,
// closeOnClickModal:false,
// dangerouslyUseHTMLString:true,
// showInput:true,
// showClose:false,
// beforeClose:(action, instance, done)=>{
// if (action === 'confirm') {
// if(instance.inputValue == "88888888") {
// done();
// } else {
// this.$message.error('');
// }
// }
// }
// }).then(({ value }) => {
// verificationCode({verificationCode:value}).then(res=>{
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// })
// })
// } else {
// login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// // setToken(res.token)
// localStorage.setItem('Admin-Token',res.token)
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
// })
// }
// })
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
// 使
verify().then(res=>{
if(!res.data) {
this.$prompt('<div>算法已有3个月未迭代请联系算法人员进行迭代优化。</div><div class="warningText">正式使用码签约合同有效期2年有效期至2026年11月1日</div>', '提示', {
confirmButtonText: '确定',
type:"warning",
closeOnPressEscape:false,
showCancelButton: false,
closeOnClickModal:false,
dangerouslyUseHTMLString:true,
showInput:true,
showClose:false,
beforeClose:(action, instance, done)=>{
if (action === 'confirm') {
if(instance.inputValue == "88888888") {
done();
} else {
this.$message.error('试用码错误!');
}
}
}
}).then(({ value }) => {
verificationCode({verificationCode:value}).then(res=>{
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
})
})
} else {
login("admin",encrypt("Suanfa@2024//**...")).then(res=>{
// setToken(res.token)
localStorage.setItem('Admin-Token',res.token)
this.getList();
this.cancalDebounce();
window.addEventListener('resize', this.cancalDebounce);
})
}
})
// 使
// this.getList();
// this.cancalDebounce();
// window.addEventListener('resize', this.cancalDebounce);
},
destroyed() {
window.removeEventListener('resize', this.cancalDebounce);

Loading…
Cancel
Save