Commit 3bd79555 by 周田

mod

parent e2e17022
...@@ -285,27 +285,27 @@ const downloadFile = () => { ...@@ -285,27 +285,27 @@ const downloadFile = () => {
}; };
// 删除协议的某个版本 // 删除协议的某个版本
const deleteProtocol = () => { // const deleteProtocol = () => {
console.log(currentVersion.value, props.name); // console.log(currentVersion.value, props.name);
axios.post('/api/protocol_vesrion_manage/delete_protocol_vesrion/', // axios.post('/api/protocol_vesrion_manage/delete_protocol_vesrion/',
{ // {
version: currentVersion.value, // version: currentVersion.value,
protocol_name: props.name, // protocol_name: props.name,
}) // })
.then(() => { // .then(() => {
ElMessage({ // ElMessage({
type: 'success', // type: 'success',
message: '删除成功', // message: '删除成功',
}) // })
options.value = options.value.filter((item) => item.value !== currentVersion.value) // options.value = options.value.filter((item) => item.value !== currentVersion.value)
currentVersion.value = options.value[0].value // currentVersion.value = options.value[0].value
changeProtocolVersion() // changeProtocolVersion()
}) // })
.catch((err) => { // .catch((err) => {
console.log(err); // console.log(err);
ElMessage.error('删除失败') // ElMessage.error('删除失败')
}) // })
} // }
// 新增协议指令 // 新增协议指令
const addCmdData = reactive({ 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