feat: 非单机版直接通过url下载标注记录
This commit is contained in:
parent
292e3026df
commit
d4150494ab
|
@ -102,6 +102,8 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
// 是否是单机版
|
||||||
|
const isLocal = false
|
||||||
function getColor () {
|
function getColor () {
|
||||||
const idxs = '0123456789abcdef'
|
const idxs = '0123456789abcdef'
|
||||||
let color = '#'
|
let color = '#'
|
||||||
|
@ -509,6 +511,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
outAllNers () {
|
outAllNers () {
|
||||||
|
if (!isLocal) {
|
||||||
|
// 非单机版,就直接通过url下载
|
||||||
|
window.open(`/v1/files/get_json?projectName=${this.projectName}`, '_self')
|
||||||
|
return true
|
||||||
|
}
|
||||||
this.nersCache[this.nowFile] = this.ners
|
this.nersCache[this.nowFile] = this.ners
|
||||||
const out = []
|
const out = []
|
||||||
for (const fileName in this.nersCache) {
|
for (const fileName in this.nersCache) {
|
||||||
|
|
Loading…
Reference in New Issue