Skip to content

Commit

Permalink
Add browser upgrade notification
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Oct 12, 2024
1 parent 9416fc1 commit ede41be
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/designer/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ function reload() {
<Suspense :timeout="30">
<el-result v-if="errorMessage" icon="error" :title="$t('error-happens')" :sub-title="errorMessage">
<template #extra>
<template v-if="errorMessage.search('WebAssembly') > 0">
<el-text type="warning">{{ $t('upgrade-browser') }}</el-text><br />
</template>
<el-button @click="reload">{{ $t('reload') }}</el-button><br />
<el-text type="info">{{ $t('sorry') }}</el-text><br />
<el-text type="info">{{ $t('invite') }}</el-text>
Expand Down Expand Up @@ -96,16 +99,16 @@ function reload() {
<fluent locale="zh-CN">
error-happens = 加载配方时出现了一些错误
not-selected = 请先选择配方
loading = 加载中
upgrade-browser = 这个问题似乎是浏览器版本过旧导致的,请尝试更新您的浏览器
reload = 刷新
sorry = 由于技术原因,出现错误后暂时只能通过刷新页面恢复,对此造成的不便我们深表歉意
invite = 如果您有兴趣解决这个问题,欢迎向本项目仓库提交PR
</fluent>

<fluent locale="en-US">
not-selected = Please select recipe first
loading = Loading
reload = Reload
upgrade-browser = Please try upgrade your browser
sorry = Due to technical reasons, the error can only be temporarily restored by refreshing the page.
We apologize for any inconvenience caused.
invite = If you are interested in solving this problem, please submit a Pull Request to the repository
Expand Down

0 comments on commit ede41be

Please sign in to comment.