diff --git a/src/views/Generator.vue b/src/views/Generator.vue
index bac0828..6466189 100644
--- a/src/views/Generator.vue
+++ b/src/views/Generator.vue
@@ -42,8 +42,9 @@
-
+
+ Any
Unisex
Male
Female
@@ -77,14 +78,20 @@
{{ index + 1 }} |
-
+ |
+ {{ namePair[1].english_name }}
+ |
+
{{ namePair[0].english_name }} {{ namePair[1].english_name }}
|
{{ namePair[0].english_name }}
|
-
+ |
+ {{ namePair[1].anglish_name }}
+ |
+
{{ namePair[0].anglish_name }} {{ namePair[1].anglish_name }}
|
@@ -178,9 +185,11 @@ function generateFirstName(num: number) {
namesPool = namesPool.filter((name) => {
if (sex.value == 0) {
return name;
- } else if ((name.kind == "Male" || name.kind == "Unisex") && sex.value == 1) {
+ } else if (name.kind == "Unisex" && sex.value == 1) {
+ return name;
+ } else if ((name.kind == "Male" || name.kind == "Unisex") && sex.value == 2) { // Male
return name;
- } else if ((name.kind == "Female" || name.kind == "Unisex") && sex.value == 2) {
+ } else if ((name.kind == "Female" || name.kind == "Unisex") && sex.value == 3) { // Female
return name;
}
// else {
diff --git a/vite.config.ts b/vite.config.ts
index 31f40ba..fba95e5 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -13,5 +13,5 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
- base: "https://pure-english.github.io/name-generator/",
+ base: "/name-generator/",
})
|