diff --git a/spug_web/src/pages/deploy/app/Ext1Setup1.js b/spug_web/src/pages/deploy/app/Ext1Setup1.js
index 0ab2376..00d2dd7 100644
--- a/spug_web/src/pages/deploy/app/Ext1Setup1.js
+++ b/spug_web/src/pages/deploy/app/Ext1Setup1.js
@@ -28,6 +28,20 @@ export default observer(function Ext1Setup1() {
}, [])
const info = store.deploy;
+ let modePlaceholder;
+ switch (info['rst_notify']['mode']) {
+ case '0':
+ modePlaceholder = '已关闭'
+ break
+ case '1':
+ modePlaceholder = 'https://oapi.dingtalk.com/robot/send?access_token=xxx'
+ break
+ case '3':
+ modePlaceholder = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx'
+ break
+ default:
+ modePlaceholder = '请输入'
+ }
return (
@@ -88,7 +102,7 @@ export default observer(function Ext1Setup1() {
disabled={store.isReadOnly || info['rst_notify']['mode'] === '0'}
value={info['rst_notify']['value']}
onChange={e => info['rst_notify']['value'] = e.target.value}
- placeholder="请输入"/>
+ placeholder={modePlaceholder}/>