'admin-20.12.15:测试打包后路径出错问题'

This commit is contained in:
lyt 2020-12-15 17:48:55 +08:00
parent b169bb9b41
commit 941b298325
5 changed files with 6 additions and 4 deletions

View File

@ -13,6 +13,7 @@
<div class="red">44</div>
</div>
<el-color-picker v-model="color" @change="colorChange"></el-color-picker>
<img src="/src/assets/images/logo/11.png" />
</template>
<script lang="ts">
@ -21,7 +22,7 @@ export default {
name: "App",
setup() {
const state = reactive({
color: "",
color: ""
});
function colorChange() {
console.log(state.color);

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -4,7 +4,8 @@
@font-face {
font-family: 'element-icons';
src: url('../fonts/element-icons.woff') format('woff'),
/* chrome, firefox */ url('../fonts/element-icons.ttf') format('truetype'); /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
/* chrome, firefox */ url('../fonts/element-icons.ttf')
format('truetype'); /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
font-weight: normal;
font-display: $--font-display;
font-style: normal;

View File

@ -3,7 +3,6 @@ import App from './App.vue'
import ElementPlus from 'element-plus';
import '/@assets/style/base/index.scss';
// import 'element-plus/lib/theme-chalk/index.css'
const app = createApp(App)
app.use(ElementPlus)

View File

@ -4,7 +4,8 @@ const path = require('path')
const viteConfig: UserConfig = {
port: 8080,
hostname: 'localhost',
open: true,
open: false,
base: "./",
alias: {
'/@/': path.resolve(__dirname, './src'),
'/@assets/': path.resolve(__dirname, './src/assets'),