feat: hideSurelyVueTableWatermarkOnDev
This commit is contained in:
parent
5a32519cd7
commit
8f423bea29
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue