refactor: 扫描问题优化

This commit is contained in:
wangjiahao 2022-06-17 10:55:44 +08:00
parent 4036018676
commit 524e9abd79
2 changed files with 3 additions and 5 deletions

View File

@ -49,7 +49,7 @@ export default [
// get user info
{
url: '/dataease/user/info\.*',
url: '/dataease/user/info*',
type: 'get',
response: config => {
const { token } = config.query

View File

@ -58,6 +58,7 @@
<script>
import {KeyValue, Scenario} from "./ApiTestModel";
import { uuid } from 'vue-uuid'
import Vue from 'vue';
@ -159,7 +160,7 @@ export default {
this.parameters.push(new KeyValue({
type: 'text',
enable: true,
uuid: this.uuid(),
uuid: uuid.v1(),
contentType: 'text/plain'
}));
}
@ -183,9 +184,6 @@ export default {
return (func.name.toLowerCase().indexOf(queryString.toLowerCase()) > -1);
};
},
uuid: function () {
return (((1 + Math.random()) * 0x100000) | 0).toString(16).substring(1);
},
advanced(item) {
if (item.type === 'json') {
this.$refs.variableJson.open(item);