refactor: 新用户增加删除的使用提示

This commit is contained in:
maxmon 2022-04-07 23:19:10 +08:00
parent e623e3dbc4
commit 81f260b13e
2 changed files with 19 additions and 1 deletions

View File

@ -12,7 +12,8 @@ module.exports = {
assetsPublicPath: '/',
proxyTable: {
'/v1/': {
target: 'http://localhost:9060/',
// target: 'http://localhost:9060/',
target: 'https://tekii.cn/',
}
},

View File

@ -33,5 +33,22 @@
background: #cccccc00;
}
</style>
<script>
if (!localStorage.isOldUser) {
let isPhone = false
for (let name of ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]) {
if (navigator.userAgent.indexOf(name) > -1) {
isPhone = true
}
}
console.log(isPhone?'手机用户':'电脑用户')
if (isPhone) {
alert('NER中,双击删除实体\n待标注文本需要txt格式的压缩包')
} else {
alert('NER中,鼠标右键删除实体\n待标注文本需要txt格式的压缩包')
}
localStorage.isOldUser = Date.now()
}
</script>
</body>
</html>