Commit 3bd79555 by 周田

mod

parent e2e17022
......@@ -285,27 +285,27 @@ const downloadFile = () => {
};
// 删除协议的某个版本
const deleteProtocol = () => {
console.log(currentVersion.value, props.name);
axios.post('/api/protocol_vesrion_manage/delete_protocol_vesrion/',
{
version: currentVersion.value,
protocol_name: props.name,
})
.then(() => {
ElMessage({
type: 'success',
message: '删除成功',
})
options.value = options.value.filter((item) => item.value !== currentVersion.value)
currentVersion.value = options.value[0].value
changeProtocolVersion()
})
.catch((err) => {
console.log(err);
ElMessage.error('删除失败')
})
}
// const deleteProtocol = () => {
// console.log(currentVersion.value, props.name);
// axios.post('/api/protocol_vesrion_manage/delete_protocol_vesrion/',
// {
// version: currentVersion.value,
// protocol_name: props.name,
// })
// .then(() => {
// ElMessage({
// type: 'success',
// message: '删除成功',
// })
// options.value = options.value.filter((item) => item.value !== currentVersion.value)
// currentVersion.value = options.value[0].value
// changeProtocolVersion()
// })
// .catch((err) => {
// console.log(err);
// ElMessage.error('删除失败')
// })
// }
// 新增协议指令
const addCmdData = reactive({
......
{
"systemParams": "linux-x64-93",
"modulesFolders": [
"node_modules"
],
"flags": [],
"linkedModules": [],
"topLevelPatterns": [],
"lockfileEntries": {},
"files": [],
"artifacts": {}
}
\ No newline at end of file
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment