mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
fix: 删除项目后端少引入函数的bug
This commit is contained in:
parent
08a91f7c41
commit
bd69021da9
@ -2,6 +2,8 @@ import projectModel from '../models/project.js';
|
|||||||
import yapi from '../yapi.js';
|
import yapi from '../yapi.js';
|
||||||
import baseController from './base.js';
|
import baseController from './base.js';
|
||||||
import interfaceModel from '../models/interface.js';
|
import interfaceModel from '../models/interface.js';
|
||||||
|
import interfaceColModel from '../models/interfaceCol.js';
|
||||||
|
import interfaceCaseModel from '../models/interfaceCase.js';
|
||||||
import groupModel from '../models/group';
|
import groupModel from '../models/group';
|
||||||
import commons from '../utils/commons.js';
|
import commons from '../utils/commons.js';
|
||||||
import userModel from '../models/user.js';
|
import userModel from '../models/user.js';
|
||||||
|
@ -48,6 +48,14 @@ var _interface = require('../models/interface.js');
|
|||||||
|
|
||||||
var _interface2 = _interopRequireDefault(_interface);
|
var _interface2 = _interopRequireDefault(_interface);
|
||||||
|
|
||||||
|
var _interfaceCol = require('../models/interfaceCol.js');
|
||||||
|
|
||||||
|
var _interfaceCol2 = _interopRequireDefault(_interfaceCol);
|
||||||
|
|
||||||
|
var _interfaceCase = require('../models/interfaceCase.js');
|
||||||
|
|
||||||
|
var _interfaceCase2 = _interopRequireDefault(_interfaceCase);
|
||||||
|
|
||||||
var _group = require('../models/group');
|
var _group = require('../models/group');
|
||||||
|
|
||||||
var _group2 = _interopRequireDefault(_group);
|
var _group2 = _interopRequireDefault(_group);
|
||||||
@ -812,8 +820,8 @@ var projectController = function (_baseController) {
|
|||||||
|
|
||||||
case 9:
|
case 9:
|
||||||
interfaceInst = _yapi2.default.getInst(_interface2.default);
|
interfaceInst = _yapi2.default.getInst(_interface2.default);
|
||||||
interfaceColInst = _yapi2.default.getInst(interfaceColModel);
|
interfaceColInst = _yapi2.default.getInst(_interfaceCol2.default);
|
||||||
interfaceCaseInst = _yapi2.default.getInst(interfaceCaseModel);
|
interfaceCaseInst = _yapi2.default.getInst(_interfaceCase2.default);
|
||||||
_context8.next = 14;
|
_context8.next = 14;
|
||||||
return interfaceInst.delByProjectId(_id);
|
return interfaceInst.delByProjectId(_id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user