Add a back-button action

This commit is contained in:
Matthew Aaron Raymer
2022-12-05 16:54:40 +08:00
parent 617de58a92
commit 3c843b2f16

View File

@@ -30,6 +30,7 @@
value="Import Identity" value="Import Identity"
/> />
<button <button
@click="onCancelClick()"
type="button" type="button"
class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md" class="block w-full text-center text-md uppercase bg-slate-500 text-white px-1.5 py-2 rounded-md"
> >
@@ -46,5 +47,9 @@ import { Options, Vue } from "vue-class-component";
@Options({ @Options({
components: {}, components: {},
}) })
export default class ImportAccountView extends Vue {} export default class ImportAccountView extends Vue {
public onCancelClick() {
this.$router.back();
}
}
</script> </script>