@@ -132,7 +132,7 @@
{
router.push({ name: 'WebsiteConfig', params: { id: id, tab: 'basic' } });
};
+const openWAF = (id: number) => {
+ router.push({ name: 'WebsiteConfig', params: { id: id, tab: 'safety' } });
+};
+
const isEver = (time: string) => {
const expireDate = new Date(time);
return expireDate < new Date('1970-01-02');
@@ -325,6 +329,12 @@ const buttons = [
openConfig(row.id);
},
},
+ {
+ label: 'WAF',
+ click: function (row: Website.Website) {
+ openWAF(row.id);
+ },
+ },
{
label: i18n.global.t('database.backupList'),
click: (row: Website.Website) => {