'admin-20.12.15:测试打包后路径出错问题'
This commit is contained in:
parent
b169bb9b41
commit
941b298325
@ -13,6 +13,7 @@
|
|||||||
<div class="red">44</div>
|
<div class="red">44</div>
|
||||||
</div>
|
</div>
|
||||||
<el-color-picker v-model="color" @change="colorChange"></el-color-picker>
|
<el-color-picker v-model="color" @change="colorChange"></el-color-picker>
|
||||||
|
<img src="/src/assets/images/logo/11.png" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
@ -21,7 +22,7 @@ export default {
|
|||||||
name: "App",
|
name: "App",
|
||||||
setup() {
|
setup() {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
color: "",
|
color: ""
|
||||||
});
|
});
|
||||||
function colorChange() {
|
function colorChange() {
|
||||||
console.log(state.color);
|
console.log(state.color);
|
||||||
|
BIN
vue-admin-wonderful-next/src/assets/images/logo/11.png
Normal file
BIN
vue-admin-wonderful-next/src/assets/images/logo/11.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
@ -4,7 +4,8 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'element-icons';
|
font-family: 'element-icons';
|
||||||
src: url('../fonts/element-icons.woff') format('woff'),
|
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-weight: normal;
|
||||||
font-display: $--font-display;
|
font-display: $--font-display;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
@ -3,7 +3,6 @@ import App from './App.vue'
|
|||||||
|
|
||||||
import ElementPlus from 'element-plus';
|
import ElementPlus from 'element-plus';
|
||||||
import '/@assets/style/base/index.scss';
|
import '/@assets/style/base/index.scss';
|
||||||
// import 'element-plus/lib/theme-chalk/index.css'
|
|
||||||
|
|
||||||
const app = createApp(App)
|
const app = createApp(App)
|
||||||
app.use(ElementPlus)
|
app.use(ElementPlus)
|
||||||
|
@ -4,7 +4,8 @@ const path = require('path')
|
|||||||
const viteConfig: UserConfig = {
|
const viteConfig: UserConfig = {
|
||||||
port: 8080,
|
port: 8080,
|
||||||
hostname: 'localhost',
|
hostname: 'localhost',
|
||||||
open: true,
|
open: false,
|
||||||
|
base: "./",
|
||||||
alias: {
|
alias: {
|
||||||
'/@/': path.resolve(__dirname, './src'),
|
'/@/': path.resolve(__dirname, './src'),
|
||||||
'/@assets/': path.resolve(__dirname, './src/assets'),
|
'/@assets/': path.resolve(__dirname, './src/assets'),
|
||||||
|
Loading…
Reference in New Issue
Block a user