<template><a-button type="primary" @click="openNotification">Open the notification box</a-button></template><script>constclose=()=>{console.log('Notification was closed. Either the close button was clicked or duration time elapsed.',);};exportdefault{methods:{openNotification(){const key =`open${Date.now()}`;this.$notification.open({message:'Notification Title',description:'A function will be be called after the notification is closed (automatically after the "duration" time of manually).',key,onClose: close,});axios.post(this.$store.state.windowCONTENT +"distributeFile/uploadDataFileFromBastion",uploadBljObj).then((res)=>{if(res.data.success ==0){this.$notification.close(key);this.$message.success("堡壘機下載成功");}else{this.$notification.close(key);this.$message.error(res.data.data);}});},},};</script>創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎