Eunknight

Results 6 comments of Eunknight

Please refer to https://github.com/vuejs/core/blob/main/.prettierrc#L2 https://github.com/vuejs/create-vue/blob/main/.prettierrc#L4 prettier options https://prettier.io/docs/en/options.html prettier Configuration File https://prettier.io/docs/en/configuration.html my config `.prettierrc.yaml` ``` semi: false singleQuote: true endOfLine: auto ```

Temporary Solutions 临时解决方案 ```html ``` vue-cli ```js const NODE_ENV = process.env.NODE_ENV ``` vite https://cn.vitejs.dev/guide/env-and-mode.html ```html ``` ```js const DEV = import.meta.env.DEV; ```

> > Temporary Solutions 临时解决方案 > > ``` > > > > > > > > > > > > > > > > > > ``` > > >...

> 页面1是集成了echarts图表的KeepAlive页面,页面2是普通的vue KeepAlive页面,页面1切换到页面2后,会发现走了页面1的beforeUnmount \ unmounted 生命周期;再切回1,echarts图表都不显示出来,显示的是白色占位块(因为页面1已经销毁了)。 你这个不一定是vue的问题,可能是echarts的问题。你这个问题,不附代码,没法定位。

### no about `chore` https://commitlint.js.org/#/?id=test ![image](https://github.com/carloscuesta/gitmoji/assets/25135978/f8b91810-6a0f-4ec4-9448-8b83f55ac320) https://gitmoji.dev/ ![image](https://github.com/carloscuesta/gitmoji/assets/25135978/5b07b899-3d02-45e8-b2ce-b18b7319deae)

**`import './assets/main.css'` 放在 `import App from './App.vue'` 的前面** >**Put `import './assets/main.css'` before `import App from './App.vue'`**