|
@@ -119,7 +119,12 @@
|
|
|
const formRef = ref();
|
|
|
const loading = ref(false);
|
|
|
const rememberMe = ref(false);
|
|
|
-
|
|
|
+ const registerUrl = ref('');
|
|
|
+ fetch('/register.json')
|
|
|
+ .then((response) => response.json())
|
|
|
+ .then((data) => {
|
|
|
+ registerUrl.value = data.url
|
|
|
+ });
|
|
|
const formData = reactive({
|
|
|
account: '',
|
|
|
password: '',
|
|
@@ -142,7 +147,9 @@
|
|
|
}
|
|
|
|
|
|
});
|
|
|
-
|
|
|
+ function handleRegister() {
|
|
|
+ window.open(registerUrl.value)
|
|
|
+ }
|
|
|
async function handleLogin() {
|
|
|
const data = await validForm();
|
|
|
if (!data) return;
|