瀏覽代碼

dev启动默认打开浏览器

RuoYi 4 年之前
父節點
當前提交
d48475c585
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      ruoyi-ui/package.json
  2. 1 1
      ruoyi-ui/src/components/SvgIcon/index.vue

+ 1 - 1
ruoyi-ui/package.json

@@ -5,7 +5,7 @@
   "author": "若依",
   "license": "MIT",
   "scripts": {
-    "dev": "vue-cli-service serve",
+    "dev": "vue-cli-service serve --open",
     "build:prod": "vue-cli-service build",
     "build:stage": "vue-cli-service build --mode staging",
     "preview": "node build/index.js --preview",

+ 1 - 1
ruoyi-ui/src/components/SvgIcon/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div v-if="isExternal" :style="styleExternalIcon" class="svg-external-icon svg-icon" v-on="$listeners" />
   <svg v-else :class="svgClass" aria-hidden="true" v-on="$listeners">
-    <use :href="iconName" />
+    <use :xlink:href="iconName" />
   </svg>
 </template>