HEX
Server: nginx/1.28.3
System: Linux ip-172-31-12-242 6.17.0-1007-aws #7~24.04.1-Ubuntu SMP Thu Jan 22 21:04:49 UTC 2026 x86_64
User: root (0)
PHP: 7.4.33
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/server/panel/BTPanel/static/js/error-redirect.js
import{X as m}from"./utils-lib.js?v=1777008528";import{c,g as n,j as y,C as d,p as b}from"./base-lib.js?v=1777008528";import{p as h}from"./useController16.js?v=1777008528";import"./__commonjsHelpers__.js?v=1777008528";import"./site.js?v=1777008528";import"./index3.js?v=1777008528";import"./index119.js?v=1777008528";import"./index116.js?v=1777008528";import"./useStore2.js?v=1777008528";const C=c({__name:"error-redirect",props:{compData:{default:{}}},setup(a,{expose:o}){const r=a,{BtForm:p,submit:l}=m({data:()=>{if(r.compData.rowData){const{type:e,errorpage:t,redirecttype:s,topath:i,tourl:u}=r.compData.rowData;return{type:e===1,errorpage:String(t),redirecttype:s,topath:i,tourl:u}}return{type:!0,errorpage:"1",redirecttype:"301",topath:"/",tourl:""}},options:e=>n(()=>[{type:"switch",label:"开启重定向",key:"type"},{type:"select",label:"错误类型",key:"errorpage",options:[{label:"页面404",value:"1"}],attrs:{style:"width: 16rem"}},{type:"select",label:"重定向方式",key:"redirecttype",options:[{label:"301(永久重定向)",value:"301"},{label:"302(临时重定向)",value:"302"}],attrs:{style:"width: 16rem"}},{type:"select",label:"404错误重定向",key:"topath",options:[{label:"首页",value:"/"},{label:"自定义",value:""}],attrs:{style:"width: 16rem","empty-values":[null,void 0]}},...e.value.topath===""?[{type:"input",label:"重定向至",key:"tourl",attrs:{width:"24rem",placeholder:"例:http://www.bt.cn.com"},rules:[{required:!0,message:"请输入重定向地址",trigger:"blur"}]}]:[]]),submit:async(e,t)=>(await t(),await h(e.value))});return o({onConfirm:l}),(e,t)=>(y(),d(b(p),{class:"p-2rem"}))}});export{C as default};