This commit is contained in:
Donald Zou
2025-09-16 08:14:43 +08:00
parent 22af38579b
commit c42776a6d7
4 changed files with 26 additions and 19 deletions

View File

@@ -9,6 +9,13 @@ const props = defineProps([
const emits = defineEmits([ const emits = defineEmits([
'back' 'back'
]) ])
const amneziaVPN = computed(() => {
if (props.qrcodeData.amneziaVPN){
return btoa(props.qrcodeData.amneziaVPN)
}
return undefined
})
</script> </script>
<template> <template>
@@ -26,8 +33,8 @@ const emits = defineEmits([
Scan with {{ protocol === "wg" ? 'WireGuard':'AmneziaWG'}} App Scan with {{ protocol === "wg" ? 'WireGuard':'AmneziaWG'}} App
</small> </small>
<div v-if="props.qrcodeData.amneziaVPN" class="d-flex flex-column gap-2 align-items-center"> <div v-if="amneziaVPN" class="d-flex flex-column gap-2 align-items-center">
<Qrcode :content="btoa(props.qrcodeData.amneziaVPN)"></Qrcode> <Qrcode :content="amneziaVPN"></Qrcode>
<small> <small>
Scan with AmneziaVPN App Scan with AmneziaVPN App
</small> </small>

View File

@@ -28,8 +28,8 @@
} }
} }
</style> </style>
<script type="module" crossorigin src="/static/dist/WGDashboardClient/assets/index-Bmidokv4.js"></script> <script type="module" crossorigin src="/static/dist/WGDashboardClient/assets/index-BCXJox7M.js"></script>
<link rel="stylesheet" crossorigin href="/static/dist/WGDashboardClient/assets/index-B-VlJEhq.css"> <link rel="stylesheet" crossorigin href="/static/dist/WGDashboardClient/assets/index-os7OmO6p.css">
</head> </head>
<body> <body>
<div id="app"> <div id="app">