Skip to content

Commit

Permalink
fix: 移除测试代码
Browse files Browse the repository at this point in the history
  • Loading branch information
ATQQ committed Jan 21, 2024
1 parent 9522a22 commit 3ef477a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions packages/client/src/components/ImageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const successImages = computed(() => imageStore.success)
</script>
<template>
<!-- 链接列表 -->
<ul class="el-upload-list el-upload-list--text">
<!-- 链接列表 -->
<ul class="el-upload-list el-upload-list--text">
<li class="el-upload-list__item" v-for="(image, idx) in successImages" :key="idx">
<div class="el-upload-list__item-info">
<div class="el-upload-list__item-name list-item-link-wrapper">
Expand All @@ -39,7 +39,7 @@ const successImages = computed(() => imageStore.success)
</ul>
</template>
<style lang="scss" scoped>
ul.el-upload-list{
ul.el-upload-list {
max-width: 666px;
margin: 20px auto;
}
Expand Down
22 changes: 11 additions & 11 deletions packages/client/src/utils/qiniu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ async function uploadFile(file: File, qiniuOps: QiNiuConfig, options?: {
fname: key,
customVars: {},
}
let i = 0
const timer = setInterval(() => {
if (i <= 100) {
options?.process?.(i)
i += 10
return
}
clearInterval(timer)
resolve(`${domain}/${putExtra.fname}`)
}, 100)

// let i = 0
// const timer = setInterval(() => {
// if (i <= 100) {
// options?.process?.(i)
// i += 10
// return
// }
// clearInterval(timer)
// resolve(`${domain}/${putExtra.fname}`)
// }, 100)
// return
const observable = qiniu.upload(file, putExtra.fname, token, putExtra, config)
observable.subscribe({
next(res) {
Expand Down

0 comments on commit 3ef477a

Please sign in to comment.