提交 4c7d2727 编写于 作者: 雪洛's avatar 雪洛

fix: 修正部分用法适配web端

上级 5cc644b3
......@@ -274,7 +274,7 @@
success: (res) => {
const requestCookie = (res.data as UTSJSONObject).getJSON("data")?.getAny("requestCookie")
console.log("requestCookie ", requestCookie);
if(requestCookie instanceof Array<unknown>){
if(requestCookie instanceof Array){
this.jest_result = needCookie ? requestCookie.length > 0 : requestCookie.length == 0
}else{
this.jest_result = needCookie ? (requestCookie as UTSJSONObject).toMap().size > 0 : (requestCookie as UTSJSONObject).toMap().size == 0
......
......@@ -44,6 +44,7 @@
}
},
onTouchMove(e: TouchEvent) {
e.preventDefault()
this.touchEvent = e
let p = e.touches[0]
if(p.screenX == this.lastX && p.screenY == this.lastY){
......
......@@ -30,14 +30,14 @@
this.buttonValue = "关闭图片旋转"
this.times = this.times + 1
this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)')
this.element!.style.setProperty('transition-duration', '2000')
this.element!.style.setProperty('transition-duration', '2000ms')
this.isStart = true
} else {
this.isStart = false
this.times = 0
this.buttonValue = "开启图片旋转"
this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)')
this.element!.style.setProperty('transition-duration', '0')
this.element!.style.setProperty('transition-duration', '0ms')
}
},
onEnd() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册