mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-03 12:29:03 +08:00
fix: 解决容器配置失败的问题 (#1225)
This commit is contained in:
parent
0187d2f5c1
commit
bfedd02d1d
1
.gitignore
vendored
1
.gitignore
vendored
@ -32,3 +32,4 @@ dist/
|
|||||||
install.sh
|
install.sh
|
||||||
docker.sh
|
docker.sh
|
||||||
cmd/server/web/.DS_Store
|
cmd/server/web/.DS_Store
|
||||||
|
cmd/server/.DS_Store
|
||||||
|
@ -152,7 +152,7 @@ export const updateDaemonJson = (key: string, value: string) => {
|
|||||||
return http.post(`/containers/daemonjson/update`, { key: key, value: value }, 60000);
|
return http.post(`/containers/daemonjson/update`, { key: key, value: value }, 60000);
|
||||||
};
|
};
|
||||||
export const updateLogOption = (maxSize: string, maxFile: string) => {
|
export const updateLogOption = (maxSize: string, maxFile: string) => {
|
||||||
return http.post(`/containers/logoption/update`, { maxSize: maxSize, maxFile: maxFile }, 60000);
|
return http.post(`/containers/logoption/update`, { logMaxSize: maxSize, logMaxFile: maxFile }, 60000);
|
||||||
};
|
};
|
||||||
export const updateDaemonJsonByfile = (params: Container.DaemonJsonUpdateByFile) => {
|
export const updateDaemonJsonByfile = (params: Container.DaemonJsonUpdateByFile) => {
|
||||||
return http.post(`/containers/daemonjson/update/byfile`, params);
|
return http.post(`/containers/daemonjson/update/byfile`, params);
|
||||||
|
@ -17,6 +17,7 @@ const message = {
|
|||||||
confirm: 'Confirm',
|
confirm: 'Confirm',
|
||||||
cancel: 'Cancel',
|
cancel: 'Cancel',
|
||||||
reset: 'Reset',
|
reset: 'Reset',
|
||||||
|
restart: 'Restart',
|
||||||
conn: 'Connect',
|
conn: 'Connect',
|
||||||
disconn: 'Disconnect',
|
disconn: 'Disconnect',
|
||||||
clean: 'Clean',
|
clean: 'Clean',
|
||||||
|
@ -17,6 +17,7 @@ const message = {
|
|||||||
confirm: '确认',
|
confirm: '确认',
|
||||||
cancel: '取消',
|
cancel: '取消',
|
||||||
reset: '重置',
|
reset: '重置',
|
||||||
|
restart: '重启',
|
||||||
conn: '连接',
|
conn: '连接',
|
||||||
disconn: '断开',
|
disconn: '断开',
|
||||||
clean: '清空',
|
clean: '清空',
|
||||||
|
@ -310,6 +310,7 @@ const handleIptables = () => {
|
|||||||
};
|
};
|
||||||
const onSubmitCloseIPtable = () => {
|
const onSubmitCloseIPtable = () => {
|
||||||
save('IPtables', 'disable');
|
save('IPtables', 'disable');
|
||||||
|
iptablesVisiable.value = false;
|
||||||
};
|
};
|
||||||
const onSubmitOpenIPtable = () => {
|
const onSubmitOpenIPtable = () => {
|
||||||
save('IPtables', 'enable');
|
save('IPtables', 'enable');
|
||||||
|
@ -101,7 +101,7 @@ const onSave = async (formEl: FormInstance | undefined) => {
|
|||||||
|
|
||||||
const onSubmitSave = async () => {
|
const onSubmitSave = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
await updateLogOption(form.logMaxSize + '', form.logMaxFile + '')
|
await updateLogOption(form.logMaxSize + form.sizeUnit, form.logMaxFile + '')
|
||||||
.then(() => {
|
.then(() => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
drawerVisiable.value = false;
|
drawerVisiable.value = false;
|
||||||
|
@ -90,6 +90,7 @@ import i18n from '@/lang';
|
|||||||
import { useDeleteData } from '@/hooks/use-delete-data';
|
import { useDeleteData } from '@/hooks/use-delete-data';
|
||||||
import router from '@/routers';
|
import router from '@/routers';
|
||||||
import { MsgSuccess } from '@/utils/message';
|
import { MsgSuccess } from '@/utils/message';
|
||||||
|
import { ElMessageBox } from 'element-plus';
|
||||||
|
|
||||||
const loading = ref();
|
const loading = ref();
|
||||||
const detailInfo = ref();
|
const detailInfo = ref();
|
||||||
|
Loading…
Reference in New Issue
Block a user