App.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!--
  2. * @Description: file content
  3. * @Version: 2.0
  4. * @Author: ljl
  5. * @Date: 2022-06-15 17:41:58
  6. * @LastEditors: ljl
  7. * @LastEditTime: 2022-07-15 21:43:03
  8. * @FilePath: \zyypt-ssb-vue_alipay\src\App.vue
  9. -->
  10. <template>
  11. <div id="app">
  12. <!-- <img alt="Vue logo" src="./assets/logo.png"> -->
  13. <keep-alive>
  14. <router-view
  15. v-if="$route.meta.keepAlive"
  16. v-wechat-title="$route.meta.title"
  17. class="Router"
  18. ></router-view>
  19. </keep-alive>
  20. <router-view
  21. v-if="!$route.meta.keepAlive"
  22. v-wechat-title="$route.meta.title"
  23. class="Router"
  24. ></router-view>
  25. </div>
  26. </template>
  27. <script>
  28. import { removeAllCookie } from "@/utils/auth";
  29. export default {
  30. name: "App",
  31. created() {
  32. removeAllCookie();
  33. },
  34. };
  35. </script>
  36. <style>
  37. #app {
  38. height: 100%;
  39. font-family: "PingFang SC-Semibold", "PingFang SC-Regular";
  40. /* font-family: Avenir, Helvetica, Arial, sans-serif; */
  41. -webkit-font-smoothing: antialiased;
  42. -moz-osx-font-smoothing: grayscale;
  43. text-align: center;
  44. /* color: #2c3e50; */
  45. color: #000;
  46. /* margin-top: 60px; */
  47. }
  48. .Router {
  49. height: 100%;
  50. /* background: #f6f6f6; */
  51. }
  52. </style>