Skip to content

Commit

Permalink
2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeLyn committed Sep 18, 2023
1 parent e02921a commit 7fc5fc9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TranslateDesktop",
"version": "2.0.0",
"version": "2.0.1",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
2 changes: 1 addition & 1 deletion src/utils/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function GoogleTranslate(store, query, from, to, callback, _err, _finally
definitions.push({
attr: item.attr,
word: x.word,
definition: x.definition,
definition: x.definition?.join(" , "),
});
});
});
Expand Down
5 changes: 3 additions & 2 deletions src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@
</td>
<td>{{ item.attr }}</td>
<td>
<template v-for="(k, idx) in item.definition" :key="k">
<!-- <template v-for="(k, idx) in item.definition" :key="k">
{{ idx > 0 ? " ," : "" }}
<span>{{ k }}</span>
</template>
</template> -->
{{ item.definition }}
</td>
</tr>
<!-- <li v-for="item in trans_result.definitions" :key="item">
Expand Down

0 comments on commit 7fc5fc9

Please sign in to comment.