mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-09 20:20:59 +08:00
fix require() actually not working after build in the frontend
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
<script>
|
||||
|
||||
const {sleep} = require("../../server/util")
|
||||
import {sleep} from '../util-frontend'
|
||||
|
||||
export default {
|
||||
|
||||
|
@@ -220,7 +220,7 @@
|
||||
|
||||
<script>
|
||||
import { Modal } from 'bootstrap'
|
||||
const {ucfirst} = require("../../server/util")
|
||||
import { ucfirst } from '../util-frontend'
|
||||
import axios from "axios";
|
||||
import { useToast } from 'vue-toastification'
|
||||
import Confirm from "./Confirm.vue";
|
||||
|
Reference in New Issue
Block a user