mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-06-09 10:23:53 +08:00
修复tab星号显示缺陷。issues:#I419YA
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
>
|
||||
<i class="ma-svg-icon" v-if="item._type === 'api'" :class="['request-method-' + item.method]" />
|
||||
<i class="ma-svg-icon" v-if="item._type !== 'api'" :class="['icon-function']" />
|
||||
{{item.name}}<span v-show="item.script !== item.ext.tmpScript">*</span>
|
||||
{{item.name}}<span v-show="!item.id || item.script !== item.ext.tmpScript">*</span>
|
||||
<i class="ma-icon ma-icon-close" @click.stop="close(item.id || item.tmp_id)"/>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -91,7 +91,7 @@ import MagicTree from '../common/magic-tree.vue'
|
||||
import request from '@/api/request.js'
|
||||
import MagicDialog from '@/components/common/modal/magic-dialog.vue'
|
||||
import MagicInput from '@/components/common/magic-input.vue'
|
||||
import { replaceURL, download as downloadFile, requestGroup, goToAnchor } from '@/scripts/utils.js'
|
||||
import { replaceURL, download as downloadFile, requestGroup, goToAnchor, deepClone } from '@/scripts/utils.js'
|
||||
import contants from '@/scripts/contants.js'
|
||||
import Key from '@/scripts/hotkey.js'
|
||||
|
||||
@@ -412,7 +412,7 @@ export default {
|
||||
return
|
||||
}
|
||||
let newItem = {
|
||||
...item,
|
||||
...deepClone(item),
|
||||
copy: true
|
||||
}
|
||||
newItem.name = newItem.name + '(复制)'
|
||||
|
||||
@@ -89,7 +89,7 @@ import MagicTree from '@/components/common/magic-tree.vue'
|
||||
import request from '@/api/request.js'
|
||||
import MagicDialog from '@/components/common/modal/magic-dialog.vue'
|
||||
import MagicInput from '@/components/common/magic-input.vue'
|
||||
import { replaceURL, requestGroup, goToAnchor } from '@/scripts/utils.js'
|
||||
import { replaceURL, requestGroup, goToAnchor, deepClone } from '@/scripts/utils.js'
|
||||
import JavaClass from '@/scripts/editor/java-class.js'
|
||||
import Key from '@/scripts/hotkey.js'
|
||||
import contants from '@/scripts/contants.js'
|
||||
@@ -396,8 +396,8 @@ export default {
|
||||
return
|
||||
}
|
||||
let newItem = {
|
||||
copy: true,
|
||||
...item
|
||||
...deepClone(item),
|
||||
copy: true
|
||||
}
|
||||
newItem.name = newItem.name + '(复制)'
|
||||
newItem.tmp_id = new Date().getTime() + '' + Math.floor(Math.random() * 1000)
|
||||
|
||||
Reference in New Issue
Block a user