Commit ded83136 authored by chenqikuai's avatar chenqikuai

fix

parent 7479c46d
......@@ -202,6 +202,7 @@ export default Vue.extend({
handleClickCopy() {
const btn = this.$refs.btn as HTMLElement;
new Clipboard(btn);
this.$toast('复制成功')
},
onCancel() {},
onSelect(value: any) {
......
......@@ -35,7 +35,7 @@ export class Service {
router.push('')
})
}
Toast.fail(ret.message)
Toast.fail(typeof ret.data === "string" ? ret.data : ret.message)
throw new Error(ret.message)
}
}
......
......@@ -8,7 +8,7 @@
class="hidden"
@change="handleFileChange"
ref="inputFile"
accept=".pdf"
accept="application/pdf"
/>
<label for="upload" class="inline-block">
<div
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment