feat: 添加 JSPage 页面,支持 JavaScript 文件,更新 ESLint 和 TypeScript 配置
This commit is contained in:
8
src/pages/JSPage/index.page.vue
Normal file
8
src/pages/JSPage/index.page.vue
Normal file
@ -0,0 +1,8 @@
|
||||
<script setup>
|
||||
import { fnInJsFile } from './js-file';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>src/pages/js-page/index.page.vue</div>
|
||||
<div>{{ fnInJsFile() }}</div>
|
||||
</template>
|
3
src/pages/JSPage/js-file.js
Normal file
3
src/pages/JSPage/js-file.js
Normal file
@ -0,0 +1,3 @@
|
||||
export function fnInJsFile() {
|
||||
return 'the function in js-file.js';
|
||||
}
|
@ -1,3 +0,0 @@
|
||||
<template>
|
||||
<p class="dark:bg-gray-800 bg-white text-gray-900 dark:text-gray-100">CONTENT</p>
|
||||
</template>
|
Reference in New Issue
Block a user