index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <global-footer v-if="visibility" class="footer custom-render">
  3. <template v-slot:links>
  4. <!-- <a href="https://www.github.com/vueComponent/pro-layout" target="_blank">Pro Layout</a>
  5. <a href="https://www.github.com/vueComponent/ant-design-vue-pro" target="_blank">Github</a>
  6. <a href="https://www.github.com/sendya/" target="_blank">@Sendya</a>-->
  7. </template>
  8. <template v-slot:copyright>
  9. <span style="margin-right: 6px">{{ copyright }}</span>
  10. <a :href="link.url" target="_blank">{{ link.text }}</a>
  11. </template>
  12. </global-footer>
  13. </template>
  14. <script>
  15. import { GlobalFooter } from '@/layouts/ProLayout'
  16. const uncompileStr = (code) => {
  17. code = unescape(code)
  18. var c = String.fromCharCode(code.charCodeAt(0) - code.length)
  19. for (var i = 1; i < code.length; i++) {
  20. c += String.fromCharCode(code.charCodeAt(i) - c.charCodeAt(i - 1))
  21. }
  22. return c
  23. }
  24. export default {
  25. name: 'ProGlobalFooter',
  26. components: {
  27. GlobalFooter
  28. },
  29. data () {
  30. return {
  31. visibility: true,
  32. copyright: uncompileStr('%5D%B2%DF%E9%EB%DB%D0%CF%DC%94%C9%C9RbbdR%u8444%uF48F%uC5B1%uAD14%u5800%60%5EP%9C'),
  33. link: {
  34. text: uncompileStr('b%A2%98%A5%A5%7Dq%92%9C'),
  35. url: uncompileStr('%7D%DC%E8%E4%E3%ADi%5E%A6%EE%EE%A5%A7%E2%D8%E5%E5%9D%91%D2%DC')
  36. }
  37. }
  38. },
  39. methods: {
  40. }
  41. }
  42. </script>