Commit ded83136 authored by chenqikuai's avatar chenqikuai

fix

parent 7479c46d
...@@ -202,6 +202,7 @@ export default Vue.extend({ ...@@ -202,6 +202,7 @@ export default Vue.extend({
handleClickCopy() { handleClickCopy() {
const btn = this.$refs.btn as HTMLElement; const btn = this.$refs.btn as HTMLElement;
new Clipboard(btn); new Clipboard(btn);
this.$toast('复制成功')
}, },
onCancel() {}, onCancel() {},
onSelect(value: any) { onSelect(value: any) {
......
...@@ -35,7 +35,7 @@ export class Service { ...@@ -35,7 +35,7 @@ export class Service {
router.push('') router.push('')
}) })
} }
Toast.fail(ret.message) Toast.fail(typeof ret.data === "string" ? ret.data : ret.message)
throw new Error(ret.message) throw new Error(ret.message)
} }
} }
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
class="hidden" class="hidden"
@change="handleFileChange" @change="handleFileChange"
ref="inputFile" ref="inputFile"
accept=".pdf" accept="application/pdf"
/> />
<label for="upload" class="inline-block"> <label for="upload" class="inline-block">
<div <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