feat: hideSurelyVueTableWatermarkOnDev

This commit is contained in:
FairyEver 2022-01-11 15:11:28 +08:00
parent 5a32519cd7
commit 8f423bea29
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
// 3. If you choose to use the method in this project to remove the watermark in the online project, you can only bear all the consequences
// 4. D2Admin (https://github.com/d2-projects/d2-admin) does not use this method to hide watermarks in any production environment
export function hideSurelyVueTableWatermark () {
export function hideSurelyVueTableWatermarkOnDev () {
if (import.meta.env.PROD || location.hostname !== 'localhost') return
clean(
'div.surely-table > div',

View File

@ -10,7 +10,7 @@
<script>
import { defineComponent, ref, onMounted } from 'vue'
import { hideSurelyVueTableWatermark } from 'd2/utils/helper/surely-vue.js'
import { hideSurelyVueTableWatermarkOnDev } from 'd2/utils/helper/surely-vue.js'
const columns = [
{ title: 'Full Name', dataIndex: 'name' },
@ -35,7 +35,7 @@ export default defineComponent({
})
}
onMounted(() => {
hideSurelyVueTableWatermark()
hideSurelyVueTableWatermarkOnDev()
})
return {
stable,