Browse Source

修改配置

lex 11 months ago
parent
commit
dcaed53c87
2 changed files with 5 additions and 2 deletions
  1. 3 1
      src/views/studentList/modals/comment-work/index.tsx
  2. 2 1
      vite.config.ts

+ 3 - 1
src/views/studentList/modals/comment-work/index.tsx

@@ -98,7 +98,9 @@ export default defineComponent({
             <h3>{props.workInfo.studentName}</h3>
             <p>
               提交时间:
-              {dayjs(props.workInfo.submitTime).format('YYYY-MM-DD HH:mm')}
+              {props.workInfo.submitTime
+                ? dayjs(props.workInfo.submitTime).format('YYYY-MM-DD HH:mm')
+                : '--'}
             </p>
           </div>
         </div>

+ 2 - 1
vite.config.ts

@@ -68,7 +68,8 @@ export default defineConfig(() => {
         includeAssets: ['./logo.png'],
         workbox: {
           skipWaiting: true,
-          clientsClaim: true
+          clientsClaim: true,
+          runtimeCaching: []
           // runtimeCaching: [
           //   {
           //     urlPattern: /(.*?)\.(js|css|ts|tsx|html)/, // js /css /ts静态资源缓存