Skip to content

Commit

Permalink
fix: uploader add @update
Browse files Browse the repository at this point in the history
  • Loading branch information
wushuangs committed Aug 28, 2024
1 parent db3f1cb commit b66ae39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintcache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/src/quasar-user-options.js":"1","/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/docs/config/.eslintrc.js":"2"},{"size":417,"mtime":1708665840961,"results":"3","hashOfConfig":"4"},{"size":907,"mtime":1709701996464,"results":"5","hashOfConfig":"6"},{"filePath":"7","messages":"8","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ikje9p",{"filePath":"9","messages":"10","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"xoj03z","/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/src/quasar-user-options.js",[],"/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/docs/config/.eslintrc.js",[]]
[{"/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/src/quasar-user-options.js":"1","/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/docs/config/.eslintrc.js":"2","/Users/zhaohuaiyuan/Desktop/beclab/ui/packages/VueDragResize/src/vue-drag-resize.js":"3"},{"size":417,"mtime":1708665840961,"results":"4","hashOfConfig":"5"},{"size":907,"mtime":1709701996464,"results":"6","hashOfConfig":"7"},{"size":19524,"mtime":1721109672612,"results":"8","hashOfConfig":"9"},{"filePath":"10","messages":"11","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ikje9p",{"filePath":"12","messages":"13","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"xoj03z",{"filePath":"14","messages":"15","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"pi1hu5","/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/src/quasar-user-options.js",[],"/Users/zhaohuaiyuan/Desktop/nodeMod/bytetrade-ui/docs/config/.eslintrc.js",[],"/Users/zhaohuaiyuan/Desktop/beclab/ui/packages/VueDragResize/src/vue-drag-resize.js",[]]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bytetrade/ui",
"version": "0.1.17",
"version": "0.1.18",
"private": false,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
3 changes: 3 additions & 0 deletions packages/uploader/src/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ export default defineComponent({
.then(function (response) {
context.emit('ok', response.data);
showCropper.value = false;
context.emit('update:model-value', false);
})
.catch(function (response) {
context.emit('fail', response.data);
showCropper.value = false;
context.emit('update:model-value', false);
})
}
Expand Down Expand Up @@ -166,6 +168,7 @@ export default defineComponent({
const uploadImg = async (file: string) => {
uploadFile.value = file;
context.emit('update:model-value', true);
factoryFn();
}
Expand Down

0 comments on commit b66ae39

Please sign in to comment.