mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
Compare commits
9 commits
7ddd3cc69f
...
a6ddd5f993
Author | SHA1 | Date | |
---|---|---|---|
|
a6ddd5f993 | ||
|
d2f71d11d6 | ||
|
cfd20f086c | ||
|
2aebf316a4 | ||
|
8389f7c054 | ||
|
d64eefd70e | ||
|
d4c7ebfafe | ||
|
aae0673a3d | ||
|
45c03c2b40 |
2 changed files with 13 additions and 2 deletions
|
@ -12,8 +12,9 @@ class ServerChan extends NotificationProvider {
|
|||
const okMsg = "Sent Successfully.";
|
||||
|
||||
// serverchan3 requires sending via ft07.com
|
||||
const url = String(notification.serverChanSendKey).startsWith("sctp")
|
||||
? `https://${notification.serverChanSendKey}.push.ft07.com/send`
|
||||
const matchResult = String(notification.serverChanSendKey).match(/^sctp(\d+)t/i);
|
||||
const url = matchResult && matchResult[1]
|
||||
? `https://${matchResult[1]}.push.ft07.com/send/${notification.serverChanSendKey}.send`
|
||||
: `https://sctapi.ftqq.com/${notification.serverChanSendKey}.send`;
|
||||
|
||||
try {
|
||||
|
|
|
@ -19,6 +19,16 @@ export default {
|
|||
onResize() {
|
||||
this.windowWidth = window.innerWidth;
|
||||
this.updateBody();
|
||||
|
||||
if (this.$router.currentRoute.value.path === "/dashboard"
|
||||
|| this.$router.currentRoute.value.path === "/list") {
|
||||
this.$router.push({
|
||||
path: this.isMobile
|
||||
? "/list"
|
||||
: "/dashboard",
|
||||
query: this.$router.currentRoute.value?.query,
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue