- API 层按业务域拆分(api/auth/, api/file/, api/system/*) - 类型定义从 types/api/ 移入对应 api 模块内(就近原则) - 公共类型统一为 api/common.ts,移除冗余类型重导出 - 样式文件按职责拆分(base/, layout/, vendors/),移除 common.scss - 移除失效的单元测试文件
26 lines
473 B
Vue
26 lines
473 B
Vue
<template>
|
|
<div class="page-container">
|
|
<iframe src="https://juejin.cn/post/7228990409909108793" frameborder="0" />
|
|
</div>
|
|
</template>
|
|
<style lang="scss" scoped>
|
|
/** 关闭tag标签 */
|
|
.page-container {
|
|
/* 50px = navbar = 50px */
|
|
height: calc(100vh - 50px);
|
|
}
|
|
|
|
/** 开启tag标签 */
|
|
.hasTagsView {
|
|
.page-container {
|
|
/* 84px = navbar + tags-view = 50px + 34px */
|
|
height: calc(100vh - 84px);
|
|
}
|
|
}
|
|
|
|
iframe {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
</style>
|