feat: 非单机版直接通过url下载标注记录

This commit is contained in:
maxmon 2021-07-05 22:06:19 +08:00
parent 292e3026df
commit d4150494ab
1 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,8 @@
</template>
<script>
//
const isLocal = false
function getColor () {
const idxs = '0123456789abcdef'
let color = '#'
@ -509,6 +511,11 @@ export default {
}
},
outAllNers () {
if (!isLocal) {
// url
window.open(`/v1/files/get_json?projectName=${this.projectName}`, '_self')
return true
}
this.nersCache[this.nowFile] = this.ners
const out = []
for (const fileName in this.nersCache) {