Skip to content

Commit

Permalink
update App.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
LandmineHQ committed Mar 22, 2024
1 parent 289ae69 commit c556564
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<template>
<header>
<div>中英对照</div>
<a href="./package.zip"
>点我下载最新汉化包 package_v{{ packageJson.version }}.zip
<a href="./package.zip" v-if="appConfig.environment === 'production'"">
<div>点我下载最新汉化包 package_v{{ packageJson.version }}.zip</div>
</a>
<a v-else>
<div>控制端输入npm run build即可编辑汉化包</div>
</a>
</header>
<main>
Expand All @@ -21,6 +24,8 @@ import json from "body-parser/lib/types/json";
const appConfig = reactive({
describeFinishedText: false,
describeAutoText: false,
// 运行环境
environment: process.env.NODE_ENV,
});
function updateToolsBarTriger(triger) {
Expand Down

0 comments on commit c556564

Please sign in to comment.